Text::Template::Inline

Text::Template::Inline allows easy formatting of hierarchical data.
Download

Text::Template::Inline Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Zack Hobson
  • Publisher web site:
  • http://search.cpan.org/~zgh/Text-Template-Inline-0.13/lib/Text/Template/Inline.pm

Text::Template::Inline Tags


Text::Template::Inline Description

Text::Template::Inline allows easy formatting of hierarchical data. Text::Template::Inline allows easy formatting of hierarchical data.SYNOPSIS # you can import any name you want instead of "render" use Text::Template::Inline 'render'; # yields "Replace things and stuff." render { foo => 'things', bar => 'stuff', }, q; # yields "Three Two One Zero" render , '{3} {2} {1} {0}'; # for a blessed $obj that has id and name accessors: render $obj, '{id} {name}'; # a "fat comma" can be used as syntactic sugar: render $obj => '{id} {name}'; # it's also possible to traverse heirarchies of data, # even of different types. # the following yields "one two three" render { a => { d => 'one' }, b => { e => 'two' }, c => { f => , }, } => '{a.d} {b.e} {c.f.3}'; # there's also an automatic unindent feature that # lines up to the least-indented line in the template: render { a => { d => 'one' }, b => { e => 'two' }, c => { f => , }, } => q{ {a.d} {b.e} {c.f.3} }; # the above results in this: 'one two three ' Requirements: · Perl · Scalar::Util · Test::More · Test::Exception


Text::Template::Inline Related Software