From 2e174dbe15034c1029a7eb1eb1bb0a2c3867b9f8 Mon Sep 17 00:00:00 2001 From: WebVPF <61043464+WebVPF@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:39:08 +0300 Subject: [PATCH] Markup - Added custom filters and functions (#181) --- markup/templating/templating.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/markup/templating/templating.md b/markup/templating/templating.md index efc44195..08e2ae61 100644 --- a/markup/templating/templating.md +++ b/markup/templating/templating.md @@ -118,3 +118,7 @@ Tag | Equivalent ------------- | ------------- `{% extend %}` | Use [Layouts](../../docs/cms/layouts) or `{% placeholder %}` `{% include %}` | Use `{% partial %}` or `{% content %}` + +## Custom Twig filters and functions + +Custom Twig filters and functions can be registered with the `registerMarkupTags` method of the plugin registration class. For detailed documentation see [Extending Twig](../../docs/plugin/registration#extending-twig).