[stringtemplate-interest] [C#] Setting variables from the template itself (eg: mail subject, mail sender)

Thibaut Barrère thibaut.barrere at gmail.com
Mon Feb 19 09:18:55 PST 2007


Hello,

is there a way to to set an attribute from a inside a template, in
order to be able to retrieve it after the template rendering ?

The idea here would be to allow an email template to be self-contained:

======================
$subject=Welcome to my super site!$
$from=welcome at mysite.fr$

Hi! You're now registered!
======================

And to achieve a call like this just after the rendering:

string subject = template.getAttribute("subject")


Any hint ?

kind regards

Thibaut Barrère


More information about the stringtemplate-interest mailing list