stan_b has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Template engine question
by moritz (Cardinal) on Dec 06, 2009 at 21:30 UTC | |
|
Re: Template engine question
by GrandFather (Saint) on Dec 06, 2009 at 20:54 UTC | |
|
Re: Template engine question
by zwon (Abbot) on Dec 06, 2009 at 20:52 UTC | |
|
Re: Template engine question
by CountZero (Bishop) on Dec 07, 2009 at 06:12 UTC |