Added placeholders filter to utilize the placeholders in twig mode

Fixes #546
This commit is contained in:
Jan Böhmer 2024-03-06 21:00:21 +01:00
parent 757201cafa
commit dff1ef04bf
5 changed files with 83 additions and 3 deletions

View file

@ -88,6 +88,10 @@ class SandboxedTwigFactoryTest extends WebTestCase
'],
['
{{ entity_type(part) is object }}
'],
['
{% apply placeholders(part) %}[[NAME]]{% endapply %}</br>
{{ placeholder("[[NAME]]", part) }}
']
];
}