[stringtemplate-interest] maps, length, wrapping
Laurent Vaucher
blo.b at infonie.fr
Sun Jan 29 12:49:43 PST 2006
Well, regarding line-wrapping, I'm not yet sure about what I
called the 'right' way to do it.
The real right way to indent and format code should be to feed the
raw source code to a formatter (the way Eclipse mostly handles code
formatting). Alright. But that means a full language AST plus a tree
'modifier' that should be aware of the output format... That seems
quite complex, and overkill for simple code generation.
So maybe the real right way is to forget about formatting and line
wrapping for simple code generation, because it would go far beyond
simple templating.
Laurent.
More information about the stringtemplate-interest
mailing list