Correct me if I'm wrong...
One of the uses of HTML:: Template is to allow the separation of (e.g. html) content and (perl) code. The code generates the data (say from a database) and delegates the output to a template. The objective here is to minimise the mixing of html code with program code in a script.
My questions are: Do we try to maximise the use of a particular template by making it as generic as possible? Or is it okay to have different templates for different outputs? What is the rule of thumb on the use of a templating system?
I look forward to hearing your views.
Thanks :)
Update
Great thanks to all who have generously shared their experiences on using a templating system, in this instance HTML::Template.
I'm now in a better position to decide when and when not to try and maximise the use of a particular template. Before, it was a judgement largely based on gut feelings, and it just didn't feel right.
In reply to HTML::Template - what's the rule of thumb? by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |