[cgiapp] Custom template tags

Michael De Soto mailman at quarghost.com
Tue Oct 12 15:29:44 EDT 2010


On Tue, Oct 12, 2010 at 12:25 PM, Michael Peters <mpeters at plusthree.com>wrote:
>
> We don't use MT (we're using Krang), but we do use a double pass templating
> system that uses HTML::Template on both sides. We do this by having the
> first pass at publishing (the static part) work with <tmpl_*> tags. The 2nd
> pass then has <dyn_*> tags, so we have something that immediately converts
> the <dyn_*> tags into <tmpl_*> tags during the publish process immediate
> after template substitution. I don't know if MT would allow you to hook into
> the publish process post-templating but that's what we do with Krang.


That's not a bad idea actually. I'll have to look at where the callbacks are
in MT. That means an MT plugin however...


More information about the cgiapp mailing list