RE: import / include directives question

2017-08-08 Thread Mickel Daelmans | Add to Favorites
default just calls Configuration.getTemplate(...)). 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, &g

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: 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   Goem