in reply to Code and html separation - always or mostly doable?
One thing I used to do, for putting results in pages, was to provide my data to a display object, and have the display object do all the heavy work of either just doing a straight template->render() call (we used a custom template solution like HTML::Template), or populate certain parts based on the data.
The other solution, is to use a "stronger" template engine. HTML::Template is great if you do the above. But things like TT or using XML::XSLT (i like this one) leaves you better off. With XML::XSLT, at least your template language is more universal. Some XSLT implementations aren't as complete as others, but the basics usually are.
Bart: God, Schmod. I want my monkey-man.
|
|---|