Template::Declare::Tags

Template::Declare::Tags allows to build and install XML Tag subroutines for Template::Declare.
Download

Template::Declare::Tags Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jesse Vincent
  • Publisher web site:
  • http://search.cpan.org/~jesse/

Template::Declare::Tags Tags


Template::Declare::Tags Description

Template::Declare::Tags allows to build and install XML Tag subroutines for Template::Declare. Template::Declare::Tags allows to build and install XML Tag subroutines for Template::Declare.SYNOPSIS package MyApp::Templates; use base 'Template::Declare'; use Template::Declare::Tags 'HTML'; template main = > sub { link {} table { row { cell { "Hello, world!" } } } img { attr { src = > 'cat.gif' } } }; # Produces: # < link / > # < table > # < tr > # < td >Hello, world!< /td > # < /tr > # < /table > # < img src="cat.gif" / > package MyApp::Templates; use base 'Template::Declare'; use Template::Declare::Tags 'XUL', HTML = > { namespace = > 'html' }; template main = > sub { groupbox { caption { attr { label = > 'Colors' } } html::div { html::p { 'howdy!' } } html::br {} } }; # Produces: # < groupbox > # < caption label="Colors" / > # < html:div > # < html:p >howdy!< /html:p > # < /html:div > # < html:br >< /html:br > # < /groupbox > Requirements: · Perl


Template::Declare::Tags Related Software