Re: Omitting template markup characters

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Tuesday, April 27, 2010, 12:36:00 PM, Kjeld wrote:

>
> Hello Daniel,
>
> Did you mean Template.getPlainTextTemplate(...) ?

Yes.

> No, I am actually using Configuration.getTemplate(...).
>
> Meanwhile I did find a workaround: I create a temp file and fill it with the
> contents of the template file, trimming each line. Works for me.

Then what was your question again? You just have superfluous
white-space? Then try using <#t>, <#rt> and <#lt>. If that isn't
practical in your case, and you rather pre-process the template, then
you still don't have to create a temp file: you can modify templates
as they are loaded with a custom TemplateLoader (that usually just
wraps standards ones, only it fiddles with the java.io.Reader).

> Thanks!
> K
>
>
>

-- 
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.