[rt-users] scrips and dynamic templates
Bob Goldstein
bobg at uic.edu
Mon Jun 21 14:22:10 EDT 2004
>Sorry for only answering the small part I know....
Thanks, that's already useful!
Unfortunately, it doesn't look like Text::Template
will let me put blocks of templated text between
control structures. I can do this:
{
if (...) {
$OUT .= "stuff";
} else {
$OUT .= "other stuff";
}
}
But not this:
[ if (...) { ]
stuff
[ } else { ]
other stuff
[}]
Oh, well. At least I _can_ get done what I need to,
even if not pretty. I realized after I sent my note,
Mason would have been a better choice than Template::Toolkit,
since RT already uses it.
bobg
>
>On Sun, Jun 20, 2004 at 12:45:18PM -0500, Bob Goldstein wrote:
>> * Are templates a strictly replace-the-variables kind of template,
>> or can I have branches or loops, as with Template::Toolkit?
>
>Templates are Text::Template
>(http://search.cpan.org/perldoc?Text::Template) templates. It is
>basically Perl embeded in the text and doesn't require learning a
>whole new template language.
>
>Michael
>--
>Michael S. Liebman m-liebman at northwestern.edu
> http://msl521.freeshell.org/
>"I have vision and the rest of the world wears bifocals."
> -Paul Newman in "Butch Cassidy & the Sundance Kid"
>
>
>
>!DSPAM:40d6f16c41091333917348!
>
>
More information about the rt-users
mailing list