The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Object::Template

ABSTRACT

Data-Object Template Class

SYNOPSIS

  use Data::Object::Template;

  my $template = Data::Object::Template->new;

  $template->render($string, $vars);

DESCRIPTION

Data::Object::Template provides methods for rendering templates and encapsulates the behavior of Template::Tiny.

METHODS

This package implements the following methods.

buildproxy

  # given $template

  $template->BUILDPROXY(...);

  # ...

The BUILDPROXY method handles resolving missing-methods via autoloaded. This method is never called directly.

origin

  # given $template

  $template->origin();

  # ...

The origin method returns the package name of the proxy used.

source

  # given $source

  $template->source();

  # Template::Tiny

The source method returns the underlying proxy object used.

render

  # given $template

  $template->render($content, $variables);

  # ...

The render method renders the given template interpolating the given variables.