Hi, I've coded up a small script to use Template::Declare to generate some XML code (it's actually XUL, to be more specific):<br><br> <a href="http://perlcabal.org/agent/xul/buttons.pl.txt">http://perlcabal.org/agent/xul/buttons.pl.txt
</a><br><br>The output file is<br><br> <a href="http://perlcabal.org/agent/xul/buttons.xul">http://perlcabal.org/agent/xul/buttons.xul</a><br><br>The script used to run buttons.pl.txt is<br><br> <a href="http://perlcabal.org/agent/xul/xulgen.pl.txt">
http://perlcabal.org/agent/xul/xulgen.pl.txt</a><br><br>It's a lot of fun. Essentially, I extended the tag set in Template::Declare::Tag by the following lines of code:<br><br><span style="font-family: courier new,monospace;">
Template::Declare::Tags::</span><span style="font-family: courier new,monospace;">install_tag($_) for qw(</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> window textbox hbox vbox radio radiogroup
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> groupbox spacer</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
);</span><br><br>The tag list given above is by no means exhaustive. It's just an experiment. :)<br><br>Here's another trivial example:<br><br> <a href="http://perlcabal.org/agent/xul/findfile.xul">http://perlcabal.org/agent/xul/findfile.xul
</a><br> <=<br> <a href="http://perlcabal.org/agent/xul/findfile.pl.txt">http://perlcabal.org/agent/xul/findfile.pl.txt</a><br><br>Enjoy!<br>agentz