[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
Wed Nov 27 12:01:00 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|The new feature allows      |The new feature allows
      release notes|plugin authors to use       |plugin authors to use
                   |template `[% INCLUDE %]`    |template `[% INCLUDE %]`
                   |directives in their         |directives in their
                   |templates. It does so by    |templates. It does so by
                   |introducing a new variable, |introducing a new variable,
                   |`PLUGIN_DIR`, allowing the  |`PLUGIN_DIR`, allowing the
                   |template engine to locate   |template engine to locate
                   |the includes.
              |the includes.
                   |
                           |
                   |**Usage**:                  |**Usage**:
                   |`[% INCLUDE                 |`[% INCLUDE
                   |"$PLUGIN_DIR/header.tt" %]` |"$PLUGIN_DIR/header.tt" %]`
                   |                            |
                   |                            |**Warning**: Care should
                   |                            |be taken when installing
                   |                            |any plugins and only
                   |                            |plugins you trust should be
                   |                            |used.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list