[stringtemplate-interest] [C#] Setting variables from the template itself (eg: mail subject, mail sender)
Terence Parr
parrt at cs.usfca.edu
Mon Feb 19 11:03:31 PST 2007
On Feb 19, 2007, at 9:48 AM, Jose San Leandro wrote:
> You can set template-specific attributes inside the template itself
> via
> typeInitMap:
>
> typeInitMap ::= [
> "subject":"Welcome to my super site!",
> "from":"welcome at mysite.fr"
> ]
>
> However, I don't know if you can access such map afterwards :(.
Yes, with $typeInitMap.subject$. However, I wouldn't mix data/model
and view.
Ter
More information about the stringtemplate-interest
mailing list