On 8/9/07, <b class="gmail_sendername">Jesse Vincent</b> <<a href="mailto:jesse@bestpractical.com">jesse@bestpractical.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>use Template::Declare::Tags 'HTML' => { namespace => 'html' }; #<br>behind the scenes creates the html:: pseudopackage and imports<br>Template::Declare::TagSet::HTML into it<br><br> html::p{ 'hello' };
</blockquote><div><br>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:
<br><br> use Template::Declare::Tags 'HTML' => { namespace => 'html', package => 'MyHTMLTags' };<br></div><br> MyHTMLTags::p { 'hello' };<br><br>still outputs:<br><br> <html:p>hello</html:p>
<br><br><br>Cheers,<br>Sterling</div>