Hello folks!
Don't know if it's just me or documentation of
HTML::Template::Extension isn't good. Eitherway, I can't figure out how to write an extenstion for it, that I need for my
project.
I work with CGI::Application, and I wan't to be
able to use (reusable) objects in my templates.
For instance :
<tmpl_plugin name="SomeName(param1,
param2)">
My filter would find SomeName module (Prefix
such as MyApp::Plugin::SomeName) make an instance of it and call method - say
named run. And place returned value instead of this tag.
Think of it as another template file that is
included but it has some processing ... That way I can create one module/plugin
and use it througth whole site/application.
If I don't figure this out soon - I will have to
give a shot to HTML::Template::Expr and register a function with it
(<tmpl_var name="plugin(SomeName, param1, param2)">).
Thanks.
|
- [htmltmpl] Writing an extension for HTML::Template ... Webmaster Techcode.NET
- RE: [htmltmpl] Writing an extension for HTML::... Dan Horne
- Re: [htmltmpl] Writing an extension for HT... Webmaster Techcode.NET
- Re: [htmltmpl] Writing an extension fo... Dan Horne
- Re: [htmltmpl] Writing an extensio... Mathew Robertson
- Re: [htmltmpl] Writing an ext... Webmaster Techcode.NET