in reply to Re: 1001 CPAN Template modules
in thread 1001 CPAN Template modules
Of course the TPD driver could translate ie. looop variables n'stuff.my $tpi = TPI->new( dsn => 'tpd:Mason:/my/files/' ); $tpi->register( 'TPD::HTML_Mason', shebang => '#!mason' ); $tpi->register( 'TPD::TT', shebang => '#!tt' ); $tpi->register( 'TPD::HTML_Template', shebang => '#!htmpl' ); $tpi->register( 'TPD::PETAL', shebang => '#!petal' ); $tpi->variables( author => 'a', title => 'b' ); print $tpi->interpolate( <<'END_HERE' ); #!mason Welcome <% $author %> END_HERE print $tpi->interpolate( <<'END_HERE' ); #!htmpl Welcome <TMPL_VAR author> END_HERE
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: Re: 1001 CPAN Template modules
by merlyn (Sage) on Apr 22, 2004 at 14:39 UTC |