One thing I've done a few times (when not using Mason (or recently, other not-Perl not-CGI mechanisms)) is to let the TT source ride along after the __END__ marker of the CGI's source. Then you just my $tmpl_text = do { local $/; <DATA> }; to slurp it in before handing it to $tmpl->process( \$tmpl_text );
You could also get fancy with Inline::File and store separate templates after separate markers, but at that point you're probably approaching being better off storing them elsewhere as separate files.
In reply to Re^2: How to do tables
by Fletch
in thread How to do tables
by kmullin5016
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |