Just another Perl shrine | |
PerlMonks |
Re: The hidden charm of Template::Toolkit (and templates generally)by roman (Monk) |
on Jan 08, 2008 at 13:12 UTC ( [id://661077]=note: print w/replies, xml ) | Need Help?? |
Dear monks, thanks for your insightful comments. I will "go with the crowd" as sundialsvc4 in Re: The hidden charm of Template::Toolkit (and templates generally) suggested, with the (probably less populous) mason crowd. Although I think modules are equivalent to mason components, the mason componenents use different (lowercased) names and path tree which distinguish them better from Controller and Model components, than some MyApp::View::Books, ... view perl modules. Also Mason is already used in my company. I don't want to bother you with repeating myself, the following lines are meant mostly for my relief. Personally I consider templates being "false mistresses". They are seducing you with: "Don't code, let's go templating", but soon after start you will meet variables, loops, conditions, methods, ... The example below is taken from Catalyst tutorial, it is pretty simple and yet it contains a bit of programming, while the authors are not even linked.
In Mason, you start with plain HTML interspersed with occasional perl lines and end up with components, subcomponents, filtering, attributes, methods, ... However If the only risk of inappropriate tool for view implementation are difficulties caused by my cubicle being tsunamized (Re: The hidden charm of Template::Toolkit (and templates generally)) I stay calm. In Czech republic, I can take the risk. :-)
In Section
Seekers of Perl Wisdom
|
|