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>


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

Reply via email to