HTML::Template::Compiled::Lazy(3pm)

HTML::Template::Compiled::Lazy3pm

Lazy loading for html::template::compiled

Usage

    use HTML::Template::Compiled::Lazy;
    my $htcl = HTML::Template::Compiled::Lazy->new(
        # usual parameters for HTML::Template::Compiled
    );
    $htcl->param(...);
    # file wasn't compiled yet
    print $htcl->output; # now compile and output!

Overview

This class does not compile templates before calling "output()". This includes "TMPL_INCLUDE"s. This can be useful in CGI environments. If your template has got a lot of includes HTML::Template::Compiled will compile all of them, even if they aren't needed because they are never reached (in a "TMPL_IF", for example).

HTML::Template::Compiled::Lazy also won't complain if the file does not exist - it will complain when you call "output()", though.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–11
  5. 12–13

From libhtml-template-compiled-perl 1.003-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.