You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, self-closing tags in Antlers aren't strictly enforced. This means that when you use a tag, you don't have to close it, like here {{ partial:button label="Foo" }}.
However, if you mix both versions in an Antlers template, it can lead to some incorrect output.
Since the self-closing version is pretty hidden in the Antlers docs (and isn’t mentioned in the documentation for the partial tag itself), figuring out the cause of the faulty rendering in complex templates can take a really long time :)
Either you force self-closing tags through the parser, or make it clearer in the documentation.
The text was updated successfully, but these errors were encountered:
Yeah, maybe then just support both versions or throw an Antlers exception, when you mix between single and pair tags? Right now it’s a bit confusing when you use both versions in your template and then nothing gets rendered.
Right now, self-closing tags in Antlers aren't strictly enforced. This means that when you use a tag, you don't have to close it, like here
{{ partial:button label="Foo" }}
.However, if you mix both versions in an Antlers template, it can lead to some incorrect output.
Invalid ❌
Correct ✅
Since the self-closing version is pretty hidden in the Antlers docs (and isn’t mentioned in the documentation for the partial tag itself), figuring out the cause of the faulty rendering in complex templates can take a really long time :)
Either you force self-closing tags through the parser, or make it clearer in the documentation.
The text was updated successfully, but these errors were encountered: