Variables · Question 12 of 12
A template with Alpine.js contains x-data="{ open: false }". Fluid 5 should leave the JavaScript code alone but insert the variable label. How is that done?
1 answer is correct. Hard
Show answer
Answer
- D CDATA and {{{label}}}
Explanation
In a CDATA section Fluid 5 ignores ViewHelper tags and single curly braces. Only expressions with three braces are evaluated, and the CDATA markers themselves are removed.