[jbosstools-dev] Freemarker #include paragraph

Max Rydahl Andersen max.andersen at redhat.com
Fri Feb 13 13:09:35 EST 2009


That is why the code generation runs automatic formatting of the .xml 
and .java code it generates.

/max
> Hi,
>
> freemarker allows us include one template into another, but if 
> included template contains a few lines the formatting is broken. For 
> example:
> person.ftl :
> <Person>
> <#include "Key.ftl">
> </Person>
> Key.ftl:
> <Key>
> <Column name="name">
> </Key>
>
> In this situation output file will be the following:
> <Person>
> <Key>
> <Column name="name">
> </Key>
> </Person>
>
> If we want to get formatted file at the output we need to change 
> included file - it is ugly solution.
>
> Anybody know how to get formatted file at the output(without special 
> formatting tools)?
>




More information about the jbosstools-dev mailing list