Just want to make sure my understanding is right on this,
as I just started using tt recently.
If I do something like ( just hightlighting the relevent points )
$t = new Template( VARIABLES => { blah } );
$t->process( , OTHERBLAH );
does it do:
create template
doing substitutions for blah
process w
On Mon, 2005-01-03 at 14:03 -0500, Sean T Allen wrote:
> $t = new Template( VARIABLES => { blah } );
>
> $t->process( , OTHERBLAH );
>
> does it do:
>
> create template
> doing substitutions for blah
>
> process what was left over after blah using OTHERBLAH
>
> so that if i ran
>
> $t->proces
Perrin Harkins wrote:
[ Please CC the list on all replies... ]
On Mon, 2005-01-03 at 16:41 -0500, Sean T Allen wrote:
Hmmm.. sorry i should have been more clear... but i was trying to get
right to the main point
I Have a template that contains country and state and user address
On Mon, 2005-01-03 at 17:42 -0500, Sean T Allen wrote:
> if I need to only instantiate 1 instance of Template ( so long as
> options passed to the constructor don't change ).
> then it would make sense for me to create the instance as a singleton.
>
> using say Apache::Singleton::Process
>
> yes?
Perrin Harkins wrote:
On Mon, 2005-01-03 at 17:42 -0500, Sean T Allen wrote:
if I need to only instantiate 1 instance of Template ( so long as
options passed to the constructor don't change ).
then it would make sense for me to create the instance as a singleton.
using say Apache:
On Mon, 2005-01-03 at 18:05 -0500, Sean T Allen wrote:
> Perrin Harkins wrote:
> > Yes. And keep in mind that you can change the INCLUDE_PATH without
> > creating a new TT object.
> >
> I havent come across that in the manual... how do i do that..
> or where in the manual would i find said inf