DomTemplate
DomTemplate copied to clipboard
Handle syntax errors in ini comments
I just spent the best part of 30 minutes debugging why my partial wasn't expanding, and it turns out it was because I was using extend: partialName rather than extend=partialName.
Because I wasn't using ini syntax, nothing was being extended... this seems like something easy to detect and alert the developer of.
HOWEVER there is an actual bug here, as if the comment doesn't parse as an ini (for example, the following string:)
<!--
THIS IS A COMMENT!
-->
an exception is thrown as the ini parser fails. This feature has regressed functionality by killing HTML comments!