On 8/9/07, <b class="gmail_sendername">Jesse Vincent</b> &lt;<a href="mailto:jesse@bestpractical.com">jesse@bestpractical.com</a>&gt; 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 &#39;HTML&#39; =&gt; { namespace =&gt; &#39;html&#39; }; #<br>behind the scenes creates the html:: pseudopackage and imports<br>Template::Declare::TagSet::HTML into it<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;html::p{ &#39;hello&#39; };
</blockquote><div><br>I like it, but I&#39;m concerned about the extra namespaces resulting in issues in some places. The import() method would obviously need to croak if &quot;html&quot; 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>&nbsp;&nbsp;&nbsp; use Template::Declare::Tags &#39;HTML&#39; =&gt; { namespace =&gt; &#39;html&#39;, package =&gt; &#39;MyHTMLTags&#39; };<br></div><br>&nbsp;&nbsp;&nbsp; MyHTMLTags::p { &#39;hello&#39; };<br><br>still outputs:<br><br>&nbsp;&nbsp;&nbsp; &lt;html:p&gt;hello&lt;/html:p&gt;
<br><br><br>Cheers,<br>Sterling</div>