[Geoserver-users] Freemarker Templates

Hi All,

can anybody help? This code does not work in a content.ftl:

<#if features?size < 2>
do s.th.
<#/if>

The output breaks after header.ftl, no error-message. I want just to show
different output if I retrieve more than 1 record.

I'm using Geoserver 1.5.4.

Greetings,

Tilo

Ok, I got it:

This works:

<#list features as feature>
<#if features?size < 2>
do s.th.
<#/if>
<#/list>

This does not:

<#if features?size < 2>
<#list features as feature>
do s.th.
<#/list>
<#/if>

for whatever reason...

Greetings,

Tilo