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

  BUILDPROXY(Any @args) : Any

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

BUILDPROXY example
  # given $template

  $template->BUILDPROXY(...);

  # ...

origin

  origin() : Str

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

origin example
  # given $template

  $template->origin();

  # ...

render

  render(Str $arg1, HashRef $arg2) : Str

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

render example
  # given $template

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

  # ...

source

  source() : Object

The source method returns the underlying proxy object used.

source example
  # given $source

  $template->source();

  # Template::Tiny