[Maypole] HTML::Template
Simon Cozens
simon@simon-cozens.org
Wed, 31 Mar 2004 23:41:12 +0100
Armin Obersteiner:
> I recently stumbled across maypole, and I liked it a lot - great idea.
Thanks!
> One question: Is it simple to use another template toolkit like
> HTML::Template with maypole?
Yes and no.
That is, it's very easy to implement, and I'll be implementing a HTML::Mason
equivalent tomorrow. The hard part is that the various other templating
modules are nowhere near as powerful as the Template Toolkit. For instance,
we usually pass in a bunch of parameters including the Maypole request object,
a hash of class metadata, and so on. Most template modules can't do method
calls, dereference hash elements, or any other useful things like that, so
you'll lose a lot of flexibility in your templates. You'll basically have to
specify pretty much everything.
But if you're going to be giving the templates to designers to fill out
anyway, who cares, I suppose? :)
One of the sections in the Maypole manual will be about programming alternate
model and view classes, and I will be working on that this week.
--
yes >/dev/kmem # Shutdown is broken. This'll have to do
- plan9 has a bad day