Tosh Cooey wrote:
> Is the only way to do:
> 
> open FILE, ">>myfile";
> 
> using the redirect filter by setting OUTPUT_PATH => ">/outDIR"
> 
> since the _output method does:
> 
> elsif (open(FP, ">$where")) {
> 
> Is the above even possible, maybe I should check... No not possible.
> 
> So, is it possible to concatenate file output from within a template?

Hmm, it might not be based on the lack of responses. Maybe you can get the 
functionality from a plugin. I did a check, but didn't see anything really 
promising.

Maybe you can create a patch for the next release to add an append option? 
Looks like you'd only need to patch Template::_output() since the options are 
already passed to it. Also a patch to the redirect filter docs to mention the 
new append option. Oh and a test might not hurt either. Probably can add on to 
the current redirect/file test file. (It appears file is an alias for redirect.)

-- Josh


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to