http://www.perlmonks.org?node_id=1031434


in reply to I'm drowning in coderefs in my HTML element module

Template::Declare also uses anon subs to create HTML, so you could look at its source to see how it does this. Having said that, Template::Declare seems usage-wise much less verbose and feature-wise much more powerful than your module, so it's worth considering if it can fit your needs.
  • Comment on Re: I'm drowning in coderefs in my HTML element module