Decl::NodalValuator - implements the template valuator used in a nodal environment.
Version 0.01
This isn't really an object module; it's just a place to instantiate a template engine. Templates are defined in Decl::Template, and the main Decl class instantiates a souped-up version of that vanilla engine that can do some fancy Decl-specific stuff.
Instantiates a template engine with a nodal valuator. TODO: implement and use an error if a field is not filled in during expression.
Like all template valuators, this takes a name and a value context. By default, the value context is a Node (duh), but we can also pass in a hashref or an arrayref of alternative data sources. This gives us as much flexibility as possible when expressing our data.
The do_foreach function implements a .foreach spanner in nodal templates that retrieves data from the structure and hands it off to the repeat loop code for formatting.
do_foreach
Michael Roberts, <michael at vivtek.com>
<michael at vivtek.com>
Please report any bugs or feature requests to bug-decl at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Decl. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-decl at rt.cpan.org
Copyright 2011 Michael Roberts.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Decl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Decl
CPAN shell
perl -MCPAN -e shell install Decl
For more information on module installation, please visit the detailed CPAN module installation guide.