Closed tirazel closed 1 year ago
Context: From what I can gather, this kind of if
statement syntax was removed from Twig and breaking in D10. It was likely brought over from some of our earlier work meaning this problem could impact other blocks. I deemed it unnecessary and didn't put it in the Advanced Content Sequence.
I don't know why they removed this syntax from Twig. It works fine in other templating languages like Nunjucks and is cleaner than having a nested if
block. Why can't we have nice things 🤦🏻♂️
There seem to be twig syntax errors on lines 44, 89, and 182 in block--content-sequence.html.twig. If I remove the 'if key|first != '#'' section at the end. My twig is rusty, so I'm not sure what the intended functionality is.