Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Creating huge files with the Template Toolkit

by thunders (Priest)
on Jul 15, 2005 at 14:29 UTC ( #475239=note: print w/ replies, xml ) Need Help??


in reply to Creating huge files with the Template Toolkit

I found this thread on the mailing list. Click here

It sounds like a bit of a hack, basically you alter the $OUTPUT token for the perl code TT generates.

In Template::Directive it is defined as:
$OUTPUT    = '$output .= ';

You can set it to something like this
$Template::Directive::OUTPUT = 'print ';

On the thread Andy notes that this will break WRAPPER and lists a few other caveats.


Comment on Re: Creating huge files with the Template Toolkit
Select or Download Code
Re^2: Creating huge files with the Template Toolkit
by tinita (Parson) on Jun 22, 2006 at 15:57 UTC
    can't you just output to a filehandle? (note that I'm not a TT expert, I'm just wondering)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://475239]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2015-07-07 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (85 votes), past polls