[stringtemplate-interest] ST4 Newbie - some basic questions around template complexity, localization
Terence Parr
parrt at cs.usfca.edu
Wed Aug 31 11:44:15 PDT 2011
On Aug 31, 2011, at 2:46 AM, Henning Verbeek wrote:
> Secondly, and this is a *real* struggle for me: The syntax of the
> template files appears to me so complex that I cannot give this out to
> a graphics designer / marketing person!
Mine used it for years that jGuru, except that we have these parameters forced on you now. I have it on my to-do list to make a template group that doesn't force the parameters for individual files.
> No CR/LF allowed, need to
where is \n not allowed?
> prefix a template with formal arguments, etc. I'm struggling with the
> statement 'templates, which are really just "documents with holes"' --
> to me it seems more like yet another DSL, which a graphics designer
> won't be able to understand.
> Looking at the documentation, it seems that maybe StringTemplate 3 is
> a better fit for me... could that be?
it has the same language for expressions.
seemed pretty easy for my designer
<name>
gives you the name.
<name:bold()>
applies the bold template to the name. If there are more than 1 it repeatedly applies the bold template.
Ter
More information about the stringtemplate-interest
mailing list