Re: [htmltmpl] creating output to a file
Brought to you by:
samtregar
From: Mathew R. <mat...@re...> - 2004-02-16 22:15:10
|
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=20 > file first on your own for writing and then pass the file handle in. = For=20 > instance, if you opened 'test.tmpl' under the filehandle 'FH', then = you=20 > pass '$template->output( print_to =3D> *FH );' >=20 > > > >I am trying to put to create a static page using > >html::template. I tried using print > >$template->output(print_to =3D> 'test.tmpl'); and it > >doesn't change the test.tmpl file and I am totally > >stuck please help. > > |