darren chamberlain wrote:
* Robert Creager <Robert_Creager at LogicalChaos.org> [2003/12/29 05:55]:

The script is running (pasted below), but no output is produced.  I've
verified that the script runs under the apache user and produces valid
results when run command line. 'ref $tt' produces the expected
'Template' when the two commented lines are un-commented.


Under mod_perl 1, DATA sections are unavailable in scripts.  I don't
know if this is the same for mod_perl 2, but try moving the template
out of DATA and into a scalar, and see what happens.

s/mod_perl 1/Apache::Registry/ -- DATA sections are available under plain mod_perl handlers. Apache::Registry and friends are special.


In mod_perl 2.0 ModPerl::Registry (notice the name change) and friends *at the moment* support __END__ and __DATA__ section (with the price of the slowdown to find them and remove them, which can be disabled with a subclass). I don't know whether the default will change to not support them when 2.0 is released, but you can always have a subclass which supports these tokens.


__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com


_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to