[jifty-devel] Idea for Template::Declare::XML

Agent Zhang agentzh at gmail.com
Thu Jul 19 09:53:19 EDT 2007


On 7/19/07, Andrew Sterling Hanenkamp <sterling at hanenkamp.com> wrote:
> That's cool. I'm not sure why I hadn't thought to try that, even though I
> finished reading Template::Declare::Tags and knew what that did.
>

Thanks :)

> On the other hand, for this to be a robust solution, this will need to be
> enhanced still. Even the comments in the code admit that some of the
> decisions being made are somewhat arbitrary and would be better made with
> the help of HTML::TagSet.
>

Agreed. I forgot to mention I had to patch Template::Declare::Tags a bit:

--- Tags.pm.old 2007-07-19 21:49:44 +0800
+++ Tags.pm.new 2007-07-19 21:49:44 +0800
@@ -219,7 +219,7 @@
            map { $_ => +{} }
                map {@{$_||[]}} @CGI::EXPORT_TAGS{qw/:html2 :html3 :html4 :netsc
ape :form/}
        );
-       install_tag($_) for keys %TAGS;
+       install_tag($_) for keys %TAGS, @::MORE_TAGS;

        =head2 with

But I must admit the patch is hacky and it's certainly far from a
robust solution ;)

Best,
agentz


More information about the jifty-devel mailing list