in reply to Thinking Aloud About HTML::Template

What do fellow monks think?

I wrestled with this problem a while back, and developed a mildly convoluted scheme that allows templates to be viewed as HTML without losing their template-ness. See Browser-viewable HTML::Template templates.

I've since headed the opposite direction--towards a more componentized view of the world--and now do things like:

<TMPL_INCLUDE ESCAPE=0 table>
where table is the result of expanding a separate template that knows how to generate HTML tables.

Replies are listed 'Best First'.
Re^2: Thinking Aloud About HTML::Template
by mojotoad (Monsignor) on Aug 01, 2004 at 05:45 UTC
    Hi there, dws.

    Could you expand on this a bit? Are you talking about table templates that are loops-within-loops to generate your "tadahs" with in your "tahrahs" ? (that is to say, td's within tr's).

    I've done that before with templates, but at that point the html'ness is pretty degraded. Not to mention with a really fat table it's not very efficient (with HTML::Template).

    Anyway, I'd appreciate some more detail, if you have the time.

    Cheers,
    Matt