[jifty-devel] Template::Declare now (partiallly) supports XUL and custom XML dialects

Jesse Vincent jesse at bestpractical.com
Thu Aug 9 21:48:28 EDT 2007


On Aug 9, 2007, at 9:22 PM, Agent Zhang wrote:

> On 8/9/07, Jesse Vincent <jesse at bestpractical.com> wrote:
>>
>> That feels pretty natural.  Thought the pragma package definition
>> kind of scares me and "HTML::Tags" there feels like it's a full
>> package specification, when I suspect it's actually a fragment of
>> one. Given that, is there a reason to include the "::Tags"?
>>
>>
>
> Sorry, it was a typo. It should have been "HTML::TagSet". The
> intention was to allow the user to specify any package names, for
> example, Foo::Bar::Baz, instead of restricting him/her to define a
> custom TagSet class under certain namespace (i.e.
> Template::Declare::TagSet::*). Maybe it's not worth it. If the user
> specify Foo::Bar, we'll always try to load
> "Template::Declare::TagSet::Foo::Bar". Does it sound okay?
>

I wonder if it would make sense to do

use Template::Declare::Tags 'HTML' => {
					# package => 'Template::Declare::TagSet::HTML',  #implied
					namespace => 'html' };


use Template::Declare::Tags 'foobar' => {
				 package => 'MyClass::Taglib::FooBarBaz',  #explicit. overrides  
'foobar'
					namespace => 'html' };

?
>>
>> What about:
>>
>>
>> use Template::Declare::Tags 'HTML' => { namespace => 'html' }; #
>> behind the scenes creates the html:: pseudopackage and imports
>> Template::Declare::TagSet::HTML into it
>>
>
> Good idea! I'd love to be more concise ;)
>
> Thanks, agentz
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20070809/ac125188/PGP.pgp


More information about the jifty-devel mailing list