On Aug 9, 2007, at 11:49 AM, Andrew Sterling Hanenkamp wrote:

On 8/9/07, Jesse Vincent <[EMAIL PROTECTED]> wrote:

use Template::Declare::Tags 'HTML' => { namespace => 'html' }; #
behind the scenes creates the html:: pseudopackage and imports
Template::Declare::TagSet::HTML into it

        html::p{ 'hello' };

I like it, but I'm concerned about the extra namespaces resulting in issues in some places. The import() method would obviously need to croak if "html" was already a package or anything else that would cause a conflict. I would be a little more comfortable if there was an additional mapping for the package name too:

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

    MyHTMLTags::p { 'hello' };

still outputs:

    <html:p>hello</html:p>



+1


Cheers,
Sterling
_______________________________________________
jifty-devel mailing list
[email protected]
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
jifty-devel mailing list
[email protected]
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel

Reply via email to