Re: [Templates] HTML::Template grammar for TT

[prev] [thread] [next] [Date index for 2004/09/05]

From: Drew Taylor
Subject: Re: [Templates] HTML::Template grammar for TT
Date: 15:52 on 05 Sep 2004
On 03 Sep 2004 07:11:52 -0700, Randal L. Schwartz <merlyn@xxxxxxxxxx.xxx> wrote:
> >>>>> "Drew" == Drew Taylor <taylor.andrew.j@xxxxx.xxx> writes:
> 
> Drew> My boss is dead set to use HTML::Template at work. But I prefer TT
> Drew> since it makes my life easier. So I got the idea that maybe I could
> Drew> use TT to process the template which would make it much easier to slip
> Drew> in TT-based apps. How much work would it be to write a grammer/parser
> Drew> for TT that I could use on my existing TT? How would I go about it?
> Drew> And I totally crazy for wanting to do this?
> 
> How about using Template::Plugin::HTML::Template?
> 
> Note - I have never used HTML::Template, because the last thing
> I want to do is type more angle brackets. :)

Thanks for the tip. The H::T plugin looks very interesting. I haven't
had a chance to see if it has support for H::T::Expr support as well,
which would be needed in my case. But I suspect it might be relatively
easy to add.

The downside is that this is a filter, and in my case would require
some work on the backend to modify my pre_process & post_process
templates to include the necessary commands to load the plugin and
start the [% FILTER %] section. Not a big deal, but a more
comprehensive solution would be nice as well.

Drew
        -- 
        ----------------------------------------------------------------
 Drew Taylor                 *  Web development & consulting
 Email: drew@xxxxxxxxxx.xxx  *  Site implementation & hosting
 Web  : www.drewtaylor.com   *  perl/mod_perl/DBI/mysql/postgres
 ----------------------------------------------------------------

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] HTML::Template grammar for TT
Drew Taylor 14:01 on 03 Sep 2004

Re: [Templates] HTML::Template grammar for TT
merlyn (Randal L. Schwartz) 14:11 on 03 Sep 2004

Re: [Templates] HTML::Template grammar for TT
Drew Taylor 15:52 on 05 Sep 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52