Security Advisories (1)
CPANSA-Kelp-2014-01 (2014-05-30)

X-Real-IP, X-Forwarded-Host and X-Remote-User headers were trusted and used in Kelp::Request

NAME

Kelp::Template - A very minimal template rendering engine for Kelp

SYNOPSIS

my $t = Kelp::Template->new;
say $t->process('file.tt', { bar => 'foo' });

DESCRIPTION

This module provides basic template rendering using Template::Tiny.

ATTRIBUTES

paths

An arrayref of paths to use when looking for template files.

encoding

Specifies the text encoding of the template files. The default value is utf8.

METHODS

process( $template, \%vars )

Processes a template and returns the parsed text. The template may be a file name, a reference to a text, a GLOB or an IO object.

say $t->process(\"Hello [% who %]", { who => 'you' });