ePages 6.17.40 - DE_EPAGES/Cartridge/API/NonPermTemplate.pm

Package DE_EPAGES::Cartridge::API::NonPermTemplate

Template implementation that does not save compiled templates to disk.

Base
DE_EPAGES::TLE::API::Template
@EXPORT_OK
ProcessFileTemplate

Functions

ProcessFileTemplate
perlFileName

ProcessFileTemplate

Starts the template processing, which is based on template $FileName. At this template are allowed calls of INCLUDE.

Syntax
$Content = ProcessFileTemplate($FileName, $hVars, $TLEProcessor);
Input
$FileName (string)
filename of template
$hVars (ref.(hash.array.)*string)
template vars (vars and loops)
$TLEProcessor (object)
tle processor (optional, default BaseProcessor)
Return
$Content (string)
replaced content

perlFileName

Returns path to the compiled template for a given template path. This method returns $FileName.'.ctmpl', but it can be overloaded. If the retun value is undef, the compiled template is not saved to disk.

Syntax
$PerlFile = $Template->perlFileName( $FileName );
Example
$PerlFile = $Template->perlFileName( 'Template.tmpl' );
Input
$FileName (string)
template file name
Return
$PerlFile (string)
compiled template file name