mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Added placeholders filter to utilize the placeholders in twig mode
Fixes #546
This commit is contained in:
parent
757201cafa
commit
dff1ef04bf
5 changed files with 83 additions and 3 deletions
|
@ -88,6 +88,10 @@ class SandboxedTwigFactoryTest extends WebTestCase
|
|||
'],
|
||||
['
|
||||
{{ entity_type(part) is object }}
|
||||
'],
|
||||
['
|
||||
{% apply placeholders(part) %}[[NAME]]{% endapply %}</br>
|
||||
{{ placeholder("[[NAME]]", part) }}
|
||||
']
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue