GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HTML::TEMPLATE::COMPILED::CLASSIC (3)

.ds Aq ’

NAME

HTML::Template::Compiled::Classic - Provide the classic functionality like HTML::Template

CONTENTS

SYNOPSIS



    use HTML::Template::Compiled::Classic compatible => 1;
    my $htcc = HTML::Template::Compiled::Classic->new(
        # usual parameters for HTML::Template::Compiled
    );



DESCRIPTION

This class provides features which can not be used together with features from HTML::Template::Compiled. These are:
dots in TMPL_VARs If you want to use



  <TMPL_VAR NAME="some.var.with.dots">



you cannot use the dot-feature



  <TMPL_VAR NAME="some.hash.keys">



at the same time.

Subref variables In HTML::Template, the following works:



    my $ht = HTML::Template->new(
        scalarref => \"<TMPL_VAR foo>",
    );
    $ht->param(foo => sub { return "bar" });
    print $ht->output; # prints bar



This doesn’t work in HTML::Template::Compiled (in the past it did, but as of HTC version 0.70 it won’t any more, sorry).

METHODS

compiler_class returns HTML::Template::Compiled::Compiler::Classic
validate_var gets the var name (parsed out of NAME="foo.bar" and returns if the string is a valid var name
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HTML::TEMPLATE::COMPILED::CLASSIC (3) 2015-07-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.