Skip to content

Instantly share code, notes, and snippets.

@walkermatt
Last active December 25, 2015 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walkermatt/7052155 to your computer and use it in GitHub Desktop.
Save walkermatt/7052155 to your computer and use it in GitHub Desktop.
GeoServer Freemarker template
<ul>
<#list features as feature>
<li><h2>${feature.type.title}</h2>
<ul>
<#list feature.attributes as attribute>
<#if !attribute.isGeometry>
<li>${attribute.name?replace("_", " ", "i")?cap_first}:
<#if attribute.value?starts_with('http')>
<a href="${attribute.value}">${attribute.value}</a>
<#else>
${attribute.value}
</#if>
</li>
</#if>
</#list>
</ul>
</li>
</#list>
</ul>
@walkermatt
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment