comparison docs/introduction.rst @ 727:3686bad61391

Docs: Notes on chaining filters in nested filter interpolation
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 16 Aug 2023 22:16:00 +0200
parents 11e24e1bbf20
children 220a9ec9ac72
comparison
equal deleted inserted replaced
726:9b0dc1d57a9f 727:3686bad61391
538 {{|<expression with variables (including filters)>|filter1[,filter2...]|}} 538 {{|<expression with variables (including filters)>|filter1[,filter2...]|}}
539 539
540 The ``<expression with variables (including filers)`` is interpolated 540 The ``<expression with variables (including filers)`` is interpolated
541 first, and the complete result is feeded into the filter chain, 541 first, and the complete result is feeded into the filter chain,
542 beginning with ``filter1``. 542 beginning with ``filter1``.
543
544 .. note:: Chaining filters is allowed only with the comma ``,`` as separating
545 symbol. Using the pipe symbol ``|`` is not supported.
543 546
544 With this, the non-working example above can be expressed as 547 With this, the non-working example above can be expressed as
545 ``{{|{{path-variable|Empty}}/subdir|normpath|}}`` 548 ``{{|{{path-variable|Empty}}/subdir|normpath|}}``
546 and yields the expected result -- with `normpath` applied to the now 549 and yields the expected result -- with `normpath` applied to the now
547 interpolated expression. 550 interpolated expression.