Re: [Templates] Dual pass template processing

2008-01-29 Thread Dave Cross
Mark Knoop wrote: > Hi > > I am new to TT and haven't read the book yet so sorry if this is a daft > question. > > I have been using my own template system (how predictable) for generating > XHTML pages but am considering whether to start using TT. One of the > features of my system is that on

Re: [Templates] problems with %ENV when using TT from cron?

2008-01-29 Thread David Martin
Thank you everyone for your help! Adding the INCLUDE_PATH to my config solved the issue! I appreciate your help very much! David > -Original Message- > From: Josh Rosenbaum [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 29, 2008 4:18 PM > To: David Martin > Cc: templates@template-to

Re: [Templates] problems with %ENV when using TT from cron?

2008-01-29 Thread Josh Rosenbaum
David Martin wrote: > Hi Josh, > > When your mail arrived I was trying the call like so > > $tt->process( '/www/foo/bar/baz/process_response.tt2', { > post_data => $post_data, > env => '\%ENV', > context => '

Re: [Templates] Dual pass template processing

2008-01-29 Thread Mark Knoop
> On Jan 29, 2008 3:39 PM, Mark Knoop <[EMAIL PROTECTED]> wrote: >> One of the >> features of my system is that one set of tags gets processed when the >> site >> is built ie the pages are prerendered to an extent. The rest of the tags >> then get processed at request time by my CGI script. > > T

Re: [Templates] Dual pass template processing

2008-01-29 Thread Mark Knoop
>> Hi >> >> I am new to TT and haven't read the book yet so sorry if this is a daft >> question. >> >> I have been using my own template system (how predictable) for generating >> XHTML pages but am considering whether to start using TT. One of the >> features of my system is that one set of tag

Re: [Templates] problems with %ENV when using TT from cron?

2008-01-29 Thread Josh Rosenbaum
David Martin wrote: > I have an inherited script that sends an email using TT to assemble an > email. The template syntax compiles fine, and the script actually > succeeds without issue from the commandline. However when cron runs the > script the $response variable is empty. > > > > I hav

Re: [Templates] problems with %ENV when using TT from cron?

2008-01-29 Thread Michael South
On Jan 29, 2008 3:31 PM, David Martin <[EMAIL PROTECTED]> wrote: > Hello, > > > > I have an inherited script that sends an email using TT to assemble an > email. The template syntax compiles fine, and the script actually succeeds > without issue from the commandline. However when cron runs the

Re: [Templates] problems with %ENV when using TT from cron?

2008-01-29 Thread Andrew Sweger
On Tue, 29 Jan 2008, David Martin wrote: > I have captured the contents of %ENV from both environments and pasted below > my sig. Anyone see what may be causing issues? Any advice as to how to > fix? Hard to say. If the script is depending on any external files or executables, this could point

Re: [Templates] Dual pass template processing

2008-01-29 Thread Perrin Harkins
On Jan 29, 2008 3:39 PM, Mark Knoop <[EMAIL PROTECTED]> wrote: > One of the > features of my system is that one set of tags gets processed when the site > is built ie the pages are prerendered to an extent. The rest of the tags > then get processed at request time by my CGI script. The documentati

Re: [Templates] Dual pass template processing

2008-01-29 Thread Stuart Johnston
Mark Knoop wrote: > Hi > > I am new to TT and haven't read the book yet so sorry if this is a daft > question. > > I have been using my own template system (how predictable) for generating > XHTML pages but am considering whether to start using TT. One of the > features of my system is that on

[Templates] Dual pass template processing

2008-01-29 Thread Mark Knoop
Hi I am new to TT and haven't read the book yet so sorry if this is a daft question. I have been using my own template system (how predictable) for generating XHTML pages but am considering whether to start using TT. One of the features of my system is that one set of tags gets processed when

[Templates] problems with %ENV when using TT from cron?

2008-01-29 Thread David Martin
Hello, I have an inherited script that sends an email using TT to assemble an email. The template syntax compiles fine, and the script actually succeeds without issue from the commandline. However when cron runs the script the $response variable is empty. I have verified that the only var