RE: Feature question FM2 / FM3: Hook into loops

2017-02-23 Thread Mickel Daelmans | Add to Favorites
Something like http://freemarker.org/docs/ref_directive_list.html#autoid_107 ? Or use your own iterator: <#assign i = 0 /> <#list items as item> <#assign i = i + 1 /> <#if i == 1> //break / stop / throw exception //do stuff in loop Mickel Daelmans Developer  

import / include directives question

2017-08-01 Thread Mickel Daelmans | Add to Favorites
Hi group, Can we use a different TemplateLoader from "Configuration.getTemplate" to use for <#import/> and <#include/> directives? We don't want template authors to load other templates in their templates. We only want to be able to include specific files from a specific directory (which we

RE: import / include directives question

2017-08-08 Thread Mickel Daelmans | Add to Favorites
(...)). That can be useful for other purposes as well, so maybe it has enough applications to warrant the extra complexity. Any thoughts? Tuesday, August 1, 2017, 1:46:37 PM, Mickel Daelmans | Add to Favorites wrote: > Hi group, > > > > Can we use a different Temp