[Templates] Perl objects in TT
[prev]
[thread]
[next]
[Date index for 2004/07/23]
Just to clarify my understanding of something here.
Supposing I have a couple of related Perl objects, WCMS::Object and
WCMS::Story, and a method WCMS::Object->published_content that returns
a WCMS::Story.
If I create Template::Plugin::WCMS::Object and apply the necessary
magic so that it inherits its methods from WCMS::Object, does the
following....
[% USE o = WCMS::Object;
SET s = o.published_content %]
then allow me to access methods on s, e.g.
[% s.headline %]
or do I need to work some extra magic in Template::Plugin::WCMS::Story
to make the published_content method return an object that TT can use?
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
[Templates] Perl objects in TT
Mike Whitaker 08:44 on 23 Jul 2004
|