Le 15 juin 07 à 15:12, Andy Wardley a écrit :

The other related thing I've got planned for TT3 is a template() vmethod which turns a string into a reusable template:

   [% message = "Hello [% item or 'World' %]!".template %]
   [% message %]                 # Hello World!
   [% message(item="Badger") %]  # Hello Badger!

yum yum yum!

--
Éric Cholet



_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to