[Geoserver-devel] [JIRA] (GEOS-10287) Extend GeoServer freemarker templates support to read properties from a JSON file

Nuno Oliveira created an issue

GeoServer / New FeatureGEOS-10287

Extend GeoServer freemarker templates support to read properties from a JSON file

Issue Type:

New FeatureNew Feature

Affects Versions:

2.21-RC

Assignee:

Nuno Oliveira

Components:

Community modules

Created:

25/Oct/21 11:29 AM

Priority:

MediumMedium

Reporter:

Nuno Oliveira

This will provide the ability to include | use JSON properties from a JSON file inside free-marker templates:

<#assign props = item.assets.value?eval_json>
<p><b>Assets:</p></b>
<ul>
<#list props as k, v>
<#if v.href?has_content>
<li><a href="${v.href}">${(v.title)!k}</a>
<#else>
<li>${(v.title)!k} (missing link)
</#if>
</li>
</#list>
</ul>

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100183-sha1:51e3c50)

Atlassian logo