[jbosstools-dev] Freemarker #include paragraph

Dmitry Geraskov dgeraskov at exadel.com
Fri Feb 13 09:03:53 EST 2009


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)?

-- 
Best regards,

 Dmitry Geraskov              
 dgeraskov at exadel.com
 Senior Developer
 Exadel Inc




More information about the jbosstools-dev mailing list