durusmail: quixote-users: Support $-substitution in templates
Support $-substitution in templates
2004-12-14
2004-12-14
2004-12-14
2004-12-14
2004-12-16
2004-12-16
2004-12-17
2004-12-17
2004-12-14
2005-01-01
2004-12-14
Support $-substitution in templates
Oscar Rambla
2004-12-14
In Quixote 2.0a2:

  * Support $-substitution in templates, as in Python 2.4's string.Template
    class.  $-substitution is applied to every '$'-containing literal in a
    template.  Templates written before this change, if they contain literals
    containing '$', *must* be converted by replacing each '$' with '$$'.

I realized that PTL templates functions use local scope for resolving
$parameters.

Also in Python 2.4 an arbitrary mapping can be provided as a single argument.

Is this possible with PTL ? If so,  could you provide an example?
If it's not, could it still be possible?

-Oscar Rambla

reply