- #29 Fix loading some templates on Windows
- #25 Can't register namespaces, functions & filters in plugins
- #26 Somehow allow adding safe functions
Breaking changes:
- Removed the
twig
boolean option. The plugin is now active if it’s installed (classical installation). For Composer installs, there is a separate registering step. - Removed the
twig.env.classes
option andnew()
Twig function. - Twig’s template cache is now disabled by default (enable with
c::set('twig.cache', true);
). - Error reporting: the
twig.error
config key is now ignored. Instead, the site’s main error page (whose URI iserror
by default) will be used in some specific situations. Seedoc/errors.md
for details. - Namespace and class names (and sometimes methods) have changed (again); there is now a
Kirby\Twig\Plugin
class which will act as a stable API, while other implementation details may change.
Deprecated (still working):
twig.env.functions
in favor oftwig.function.myFunction
;twig.env.filters
in favor oftwig.filter.myFilter
;twig.env.namespace.xyz
in favor oftwig.namespace.xyz
.
See on GitHub: