Invalid directive error a little misleading
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
Given a template where closing tag had / missed like the below:
<#assign i=3><#list 1..i as k>${k}<#list>
The following error is given:
Unknown directive: #list. Help (latest version): http://freemarker.org/docs/ref_directive_alphaidx.html; you're using FreeMarker 2.3.20.
Took a bit of debugging and thinking to realize it should have been:
<#assign i=3><#list 1..i as k>${k}
Actually, that stands for any directives with required parameters. Like
<#if>
will tell thatif
is unknown.