CatalystX::CRUD::YUI::TT - templates for your CatalystX::CRUD view
use CatalystX::CRUD::YUI::TT; # in a template [% foo.as_json %] [% foo.dump_data %] [% foo.dump_stderr %] [% SET foo = 1; foo.increment; # foo == 2 foo.decrement; # foo == 1 %]
CatalystX::CRUD::YUI::TT adds some convenience virtual methods to the Template::Stash namespace.
The following TT virtual methods are added automatically for use in your template files:
Replacement for the Dumper plugin. You can call this method on any variable to see its Data::Dump representation in HTML-safe manner.
[% myvar.dump_data %]
Like dump_data but prints to STDERR instead of returning HTML-escaped string. Returns undef.
Encode the variable as a JSON string. Wrapper around the JSON->encode method. The string will be encoded as UTF-8, and the special JSON flags for converted_blessed and allow_blessed are true by default.
true
Increment a scalar number by one. Aliased as a scalar vmethod as 'inc'.
Decrement a scalar number by one. Aliased as a scalar vmethod as 'dec'.
Peter Karman, <karman@cpan.org>
<karman@cpan.org>
Please report any bugs or feature requests to bug-catalystx-crud-yui@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-catalystx-crud-yui@rt.cpan.org
The Minnesota Supercomputing Institute http://www.msi.umn.edu/ sponsored the development of this software.
http://www.msi.umn.edu/
Copyright 2008 by the Regents of the University of Minnesota.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install CatalystX::CRUD::YUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::CRUD::YUI
CPAN shell
perl -MCPAN -e shell install CatalystX::CRUD::YUI
For more information on module installation, please visit the detailed CPAN module installation guide.