OT: Templating systems (was RE: [Catalyst] New default screen for Catalyst)

Nigel Metheringham nigel.metheringham at dev.intechnology.co.uk
Wed Oct 19 18:08:27 CEST 2005


On Wed, 2005-10-19 at 10:41 -0400, Thomas, Mark - BLS CTR wrote:
...
> Personally, I don't see how HTML::Template is any different from how I
> use TT, except:
...
> 3. Your HTML templates cannot be validated as proper HTML.

Actually you can, as long as you use the alternative form of tags where
they are embedded in <!-- --> comments.

But if you use anything like includes to pull in
headers/footers/decorations etc you tend to break the validation anyhow
- which happens with the other template forms.

The main downside to HTML::Template from my point of view is that you
end up manipulating the data in the code to match the presentation, so
if you change anything in the presentation (other than really basic
tweaks) you end up modding the code - for example to do sorting you have
to fiddle it in the code rather than the presentation layer.

But I still have stuff working with HTML::Template, and I don't have to
go back to the book/manual as much as I have to do with TT.

	Nigel.
-- 
[ Nigel Metheringham           Nigel.Metheringham at InTechnology.co.uk ]
[ - Comments in this message are my own and not ITO opinion/policy - ]





More information about the Catalyst mailing list