Stefan Hornburg (Racke) > Template-Flute-0.0061 > Template::Flute::Specification

Download:
Template-Flute-0.0061.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Template-Flute-0.0114

NAME ^

Template::Flute::Specification - Specification class for Template::Flute

SYNOPSIS ^

    $xml_spec = new Template::Flute::Specification::XML;
    $spec = $xml_spec->parse_file('spec.xml');
    $spec->set_iterator('cart', $cart);

    $conf_spec = new Template::Flute::Specification::Scoped;
    $spec = $conf_spec->parse_file('spec.conf);

DESCRIPTION ^

Specification class for Template::Flute.

CONSTRUCTOR ^

new

Creates Template::Flute::Specification object.

METHODS ^

name NAME

Set or get the name of the specification.

encoding ENCODING

Set or get the encoding of the HTML template which is parsed according to this specification.

container_add CONTAINER

Add container specified by hash reference CONTAINER.

list_add LIST

Add list specified by hash reference LIST.

paging_add PAGING

form_add FORM

Add form specified by hash reference FORM.

value_add VALUE

Add value specified by hash reference VALUE.

i18n_add I18N

Add i18n specified by hash reference I18N.

list_iterator NAME

Returns iterator for list named NAME or undef.

list_inputs NAME

Returns inputs for list named NAME or undef.

list_sorts NAME

Return sorts for list named NAME or undef.

list_filters NAME

Return filters for list named NAME or undef.

form_inputs NAME

Return inputs for form named NAME or undef.

iterator NAME

Returns iterator identified by NAME.

set_iterator NAME ITER

Sets iterator for NAME to ITER. ITER can be a iterator object like Template::Flute::Iterator or a reference to an array containing hash references.

resolve_iterator INPUT

Resolves iterator INPUT.

elements_by_class NAME

Returns element(s) of the specification tied to HTML class NAME or undef.

elements_by_name NAME

Returns element(s) of the specification tied to HTML attribute name or undef.

element_by_id NAME

Returns element of the specification tied to HTML id NAME or undef.

list_paging NAME

Returns paging for list NAME.

AUTHOR ^

Stefan Hornburg (Racke), <racke at linuxia.de>

BUGS ^

Please report any bugs or feature requests to bug-template-flute at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Template-Flute.

LICENSE AND COPYRIGHT ^

Copyright 2010-2013 Stefan Hornburg (Racke).

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.

syntax highlighting: