-
-
03 May 2016 12:15:34 UTC
- Distribution: HTML-Template-Compiled
- Module version: 1.003
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (0)
- Testers (1956 / 4 / 0)
- Kwalitee
Bus factor: 1- 82.69% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (95.2KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
HTML::Template::Compiled::Lazy - Lazy Loading for HTML::Template::Compiled
SYNOPSIS
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!
DESCRIPTION
This class does not compile templates before calling
output()
. This includesTMPL_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 aTMPL_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.Module Install Instructions
To install HTML::Template::Compiled, copy and paste the appropriate command in to your terminal.
cpanm HTML::Template::Compiled
perl -MCPAN -e shell install HTML::Template::Compiled
For more information on module installation, please visit the detailed CPAN module installation guide.