Mercurial > hgrepos > Python > libs > ConfigMix
comparison docs/introduction.rst @ 725:11e24e1bbf20
Docs: Introduce the new nested interpolation with filters
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Wed, 16 Aug 2023 17:33:11 +0200 |
| parents | c17a4e30ebbf |
| children | 3686bad61391 |
comparison
equal
deleted
inserted
replaced
| 724:ef7bee8b54e1 | 725:11e24e1bbf20 |
|---|---|
| 533 tag ``}}`` it uses the special start tag ``{{|`` and end tag ``|}}``. | 533 tag ``}}`` it uses the special start tag ``{{|`` and end tag ``|}}``. |
| 534 | 534 |
| 535 | 535 |
| 536 With the syntax:: | 536 With the syntax:: |
| 537 | 537 |
| 538 {{|<expression with variables>|filter1[,filter2...]|}} | 538 {{|<expression with variables (including filters)>|filter1[,filter2...]|}} |
| 539 | 539 |
| 540 The expression above can be expressed as | 540 The ``<expression with variables (including filers)`` is interpolated |
| 541 first, and the complete result is feeded into the filter chain, | |
| 542 beginning with ``filter1``. | |
| 543 | |
| 544 With this, the non-working example above can be expressed as | |
| 541 ``{{|{{path-variable|Empty}}/subdir|normpath|}}`` | 545 ``{{|{{path-variable|Empty}}/subdir|normpath|}}`` |
| 542 and yields the expected result -- with `normpath` applied to the now | 546 and yields the expected result -- with `normpath` applied to the now |
| 543 interpolated expression. | 547 interpolated expression. |
| 544 | 548 |
| 545 | 549 |
