Kernel::Output::Template::Provider - Template Toolkit custom provider
performs some post-initialization and creates a bridge between Template::Toolkit and OTRS by adding the OTRS objects to the Provider object. This method must be called after instantiating the Provider object.
Please note that we only store a weak reference to the LayoutObject to avoid ring references.
inherited from Template::Provider. This function override just makes sure that the original in-memory cache cannot be used.
translates old DTL
template content to Template::Toolkit syntax.
my $TTCode = $ProviderObject->MigrateDTLtoTT( Content => $DTLCode );
If an error was found, this method will die()
, so please use eval around it.
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.