in reply to Convert HTML::Template tags to valid HTML comments

How complex are your SVG customisations? Unless it's going to be a lot of work, I'd drop HTML::Template, and just do DOM manipulation with XML::LibXML.

Edit your SVGs, and add some xml:id attributes to the elements that need altering. Then in Perl, use XML::LibXML and XPath selectors to find those elements and alter them.

  • Comment on Re: Convert HTML::Template tags to valid HTML comments