[Templates] how do I find all parsed tags?
Josh Rosenbaum
josh at infogears.com
Mon Jun 30 17:23:45 BST 2008
Blue Eyed Devil wrote:
[SNIP]
> 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').
>
> Logically it should be called after $template->process() to be able to
> get all tags.
>
> Any ideas on how to implement this with TT without any hacking?
I'm pretty sure you'd have to hack this. It might be easier to give us your problem and ask for any ideas on how to solve it in a different manner than what you are doing.
-- Josh
More information about the templates
mailing list