A time ago I've been using my own simple template library that had a feature allowing to define some variable in the template, retrieve it from script and then replace this variable with some value.
For example, if user defines in a template a string "%section_10%" I retrieve value "10", make a mySQL query to select some text from row with id = 10 and then replace text "%section_10%" with query result.
Now I want to move to some other template engine that is probably more optimised then mine own, but I cannot find anything. I have looked for HTML::Template and CTPP but it seems that they don't allow to define variable value in the template and retrive it.
Can someone point me to the template library that has the functionality I need?
Thanks in advance.In reply to Template engine question by stan_b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |