[Templates] how do I find all parsed tags?

Josh Rosenbaum josh at infogears.com
Mon Jun 30 19:32:17 BST 2008


Blue Eyed Devil wrote:
[SNIP]
>  That IS my problem :-) I am writing a Perl Framework that I want to 
> eventually do open-source (it will tie in with my CPAN "OOP" module). 
> I'm building my website at www.perlscript.com 
> <http://www.perlscript.com> using this framework - development is slow 
[SNIP]  
>  One of the issues in the framework's template parsing module is that it 
> has to parse the template, extract all the tags, and depending on what 
> tags it finds, it should execute corresponding code to that tag.

Do you have a real world example of this happening? (ie. I need to do X when tag Y is found.) I'm not really fully understanding what you are doing, but an example might help. Someone with actual framework experience here may be able to help you more.

Would the TAG_STYLE config option help (see following link) if you are doing preprocessing? (Process with one tag style and then reprocess with another.):
http://template-toolkit.org/docs/manual/Config.html#section_TAG_STYLE

-- Josh

[SNIP]



More information about the templates mailing list