Kernel::Output::TemplateToolkit

NAME

Kernel::Output::TemplateToolkit – Lightweight Template Toolkit wrapper for OTRS.

PUBLIC INTERFACE

RenderTemplate()

renders a given string template.

    my $RenderedContent = $TemplateObject->RenderTemplate(
        Template => 'my string with [% Data.MoreInfo | html %]',
        Data     => {
            MoreInfo => 'more information about data payload',
        },
    );

Returns the rendered content or throws an exception in case of error.

Some additional filters and functions are supported, please see Kernel::Output::TemplateToolkit::Plugin::OTRS for details.

Scroll to Top