[Koha-bugs] [Bug 23237] Add support for [% INCLUDE %] in plugin templates
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Nov 26 17:39:33 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23237
Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Text to go in the|From a plugin template it |The new feature allows
release notes|is useful to include other |plugin authors to use
|templates with [% INCLUDE |template `[% INCLUDE %]`
|%] directives. But the TT |directives in their
|module is used by Koha with |templates. It does so by
|absolute paths. Relative |introducing a new variable,
|paths are forbidden for |`PLUGIN_DIR`, allowing the
|security reasons. A new |template engine to locate
|param [% PLUGIN_DIR %] |the includes.
|allows plugin templates to |
|know where to find the |**Usage**:
|plugin home directory. |`[% INCLUDE
| |"$PLUGIN_DIR/header.tt" %]`
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list