[Jifty-commit] r3869 - Template-Declare/lib/Template/Declare

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Aug 13 01:43:43 EDT 2007


Author: agentz
Date: Mon Aug 13 01:43:42 2007
New Revision: 3869

Modified:
   Template-Declare/lib/Template/Declare/Tags.pm

Log:
TD - documented the C< use T::D::Tags { from => 'Foo::Bar' } > feature

Modified: Template-Declare/lib/Template/Declare/Tags.pm
==============================================================================
--- Template-Declare/lib/Template/Declare/Tags.pm	(original)
+++ Template-Declare/lib/Template/Declare/Tags.pm	Mon Aug 13 01:43:42 2007
@@ -151,6 +151,19 @@
 as they subclass L<Template::Declare::TagSet> and implement
 the corresponding methods (e.g. C<get_tag_list>).
 
+If you implement a custome tag set module named
+C<Template::Declare::TagSet::Foo>.
+
+ use Template::Declare::Tags 'Foo';
+
+If you give the your tag set module a different name, say, C<MyTag::Foo>, then
+you use the C<from> option:
+
+ use Template::Declare::Tags Foo => { from => 'MyTag::Foo' };
+
+Then C<Template::Declare::Tags> will no longer try to load C<Template::Declare::TagSet::Foo>
+and C<MyTag::Foo> will be loaded instead.
+
 XML namespaces are emulated by Perl packages. For
 example, you can embed HTML tags within XUL using the C<html> namespace:
 


More information about the Jifty-commit mailing list