The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Decl::NodalValuator - implements the template valuator used in a nodal environment.

VERSION

Version 0.01

SYNOPSIS

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.

instantiate()

Instantiates a template engine with a nodal valuator. TODO: implement and use an error if a field is not filled in during expression.

valuator($name, $node)

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.

do_foreach

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.

AUTHOR

Michael Roberts, <michael at vivtek.com>

BUGS

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.

LICENSE AND COPYRIGHT

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.