Re: [htmltmpl] creating output to a file

2004-02-16 Thread Mathew Robertson
in that case, maybe 'print_to' needs to be overloaded so as to take both Mathew > The 'print_to' parameter takes an open filehandle. You have to open the > file first on your own for writing and then pass the file handle in. For > instance, if you opened 'test.tmpl' under the filehandle '

Re: [htmltmpl] Re: Script under mod_perl occasionally gets garbage opening template

2004-02-16 Thread Mathew Robertson
I am using Perl5.8 and have had no such problem. Given the number people using H::T, I'd suggest looking eslsewhere first... I'd suggest turning on debugging (ie set the 'debug' option), which will send lots of stuff to your apache errorlog file. Mathew > Hi, > > Further to my original proble

Re: [htmltmpl] creating output to a file

2004-02-16 Thread Timm Murray
The 'print_to' parameter takes an open filehandle. You have to open the file first on your own for writing and then pass the file handle in. For instance, if you opened 'test.tmpl' under the filehandle 'FH', then you pass '$template->output( print_to => *FH );' At 10:56 AM 2/16/04 -0800, Kevi

RE: [htmltmpl] creating output to a file

2004-02-16 Thread Bob Hicks
> -Original Message- > From: [EMAIL PROTECTED] [mailto:html- > [EMAIL PROTECTED] On Behalf Of Kevin Fletcher > Sent: Monday, February 16, 2004 1:56 PM > To: [EMAIL PROTECTED] > Subject: [htmltmpl] creating output to a file > > Hey, > > > > I am trying to put to create a static page usin

[htmltmpl] creating output to a file

2004-02-16 Thread Kevin Fletcher
Hey, I am trying to put to create a static page using html::template. I tried using print $template->output(print_to => 'test.tmpl'); and it doesn’t change the test.tmpl file and I am totally stuck please help. Thanks Kevin --- SF.

Re: [htmltmpl] TMPL vars in tmpl expr ?

2004-02-16 Thread root
EXR="current_month == "> > r> "> > r> NEW > r> > r> > r> > r> > > r> where arg6..arg8 is the time i added the post > > try using HTML::Template::Expr > > you'll get smth like this: > > > > -- > Best regards, > Ãîðüêèé Þðèémailto:[EMAIL PROTECTED] > -

[htmltmpl] TMPL vars in tmpl expr ?

2004-02-16 Thread root
">"> but i got around it by the filters. any help appreciated. // DS PS. Thanks for a wonderfull module! DS. --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD softwar

[htmltmpl] Re: Script under mod_perl occasionally gets garbage opening template

2004-02-16 Thread Andy Pearce
Hi, Further to my original problem (occasionally having problems parsing a template file with mod_perl), I've narrowed down the problem to what appears to be a bug in Perl's pattern matching. Printing the contents of the $chunk variable shows it's perfectly valid, whereas the $which variable (assi