[Templates] Any way to get the current Template::Document from inside a Plugin?
John Napiorkowski
jjn1056 at yahoo.com
Thu Oct 25 19:14:37 BST 2007
Hi,
I'm trying to write a plugin that loads some
information based on the calling templates name. For
example if I have a template called,
"directory/file.tt2" and that template USEs a custom
plugin, can I somehow get the Template::Document
object that holds the compiled version of
"directory/file.tt2"?
It seems that a plugin only get's the context, but I
can't figure out how from the context to get
information about the current template.
My goal is to have a plugin that loads some additional
information from a lookup table based on the template
name.
Thanks for your assistance in advance!
John Napiorkowski
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the templates
mailing list