Text::QuickTemplate is a simple, lightweight text fill-in class.
SYNOPSIS
# Create and fill a template:
$template = Text::QuickTemplate->new($string, %options);
# Set default values:
$template->default(%values);
# Set some override values:
$template->pre_fill(%values);
# Fill it in, rendering the result string:
$result = $template->fill(%values);
# printf-like usage
QTprintf ($format, %values);
# sprintf-like usage
$result = QTsprintf ($filehandle, $format, %values);
# fprintf-like usage (print to a filehandle)
QTfprintf ($filehandle, $format, %values);
OPTIONS
delimiters => [ '{{', '}}' ]; # may be strings
delimiters => [ qr/{{/, qr/}}/ ]; # and/or regexps
Product's homepage
Requirements:
· Perl