- Issue created by @gashunk
- Merge request !153541845-twig-template-breaks Add description to Twigtemplate field and static argument name field. → (Open) created by Unnamed author
When defining arguments for a SPA/Twig block, the argument name is inserted directly into the Twig template.
If the argument name contains a dash (-) instead of underscore (_), Twig cannot parse the variable and the template will not render.
This is confusing for site builders because the UI does not warn them, and the error only shows up when rendering.
Create a new SPA.
Add an argument with the name my-argument-name.
Use it in the Twig template:
Test: {{ my-argument-name }}
Save and render.
Active
1.0
Documentation