On Mon, Jun 30, 2008 at 11:31:31AM -0400, Blue Eyed Devil wrote:
>
> My question is whether or not TT has an option to know all the tags
> it was able to parse and retrieve those?
>
> Example:
>
> [% BOY %] says [% WORD %] to [% GIRL %]
>
> Let's say I pass in the vars, BOY and WORD to $template->process()
> but NOT the var GIRL. However, I would like to have the ability to
> do something like:
>
> @tags = $template->some_method();
>
> And when I would go through the @tags it would contain ('BOY',
> 'WORD', 'GIRL').
And what if your template has:
IF BOY == 'George';
PROCESS templates/george.tt;
ELSE;
PROCESS templates/typical_boy.tt;
END;
So you can't know what variables you need until you actually process the
template and you don't know what template to process until you set
those variables.
--
Bill Moseley
[EMAIL PROTECTED]
Sent from my iMutt
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates