Paul Seamons > Template-Alloy-1.019 > Template::Alloy::HTE

Download:
Template-Alloy-1.019.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source   Latest Release: Template-Alloy-1.020

NAME ^

Template::Alloy::HTE - HTML::Template and HTML::Template::Expr roles.

DESCRIPTION ^

The Template::Alloy::HTE role provides syntax and interface support for the HTML::Template and HTML::Template::Expr modules.

Provides for extra or extended features that may not be as commonly used. This module should not normally be used by itself.

See the Template::Alloy documentation for configuration and other parameters.

HOW IS Template::Alloy DIFFERENT FROM HTML::Template ^

Alloy can use the same base template syntax and configuration items as HTE and HT. The internals of Alloy were written to support TT3, but were general enough to be extended to support HTML::Template as well. The result is HTML::Template::Expr compatible syntax, with Alloy speed and a wide range of additional features.

The TMPL_VAR, TMPL_IF, TMPL_ELSE, TMPL_UNLESS, TMPL_LOOP, and TMPL_INCLUDE all work identically to HTML::Template.

UNSUPPORTED HT CONFIGURATION ^

die_on_bad_params

Alloy does not resolve variables until the template is output.

force_untaint
strict

Alloy is strict on parsing HT documents.

shared_cache, double_cache

Alloy doesn't have shared caching. Yet.

search_path_on_include

Alloy will check the full path array on each include.

debug items

The HTML::Template style options are included here, but you can use the TT style DEBUG and DUMP directives to do introspection.

max_includes

Alloy uses TT's recursion protection.

filter

Alloy doesn't offer these.

ROLE METHODS ^

register_function

Defines a new function for later use as text vmethod or top level function.

clear_param

Empties the parameter list.

query

Not supported.

new_file

Creates a new object that will process the passed file.

    $obj = Template::Alloy->new_file("my/file.hte");
new_scalar_ref

Creates a new object that will process the passed scalar ref.

    $obj = Template::Alloy->new_scalar_ref(\"some template text");
new_array_ref

New object that will process the passed array (each item represents a line).

    $obj = Template::Alloy->new_array_ref(\@array);
new_filehandle
    $obj = Template::Alloy->new_filehandle(\*FH);
parse_tree_hte

Called by parse_tree when syntax is set to ht or hte. Parses for tags HTML::Template style.

param

See Template::Alloy.

output

See Template::Alloy.

AUTHOR ^

Paul Seamons <paul@seamons.com>

LICENSE ^

This module may be distributed under the same terms as Perl itself.

syntax highlighting: