Enforces having only one container tag at the top level of templates. It can be a single self-closing tag (without no other tags) or a classing opening/closing tag pairs encloses all the other tags.
Fixed a bug that prevents parser to correctly identify non-closed opening tags.
Checks also if there is any closing tags without an opening tag.
Fixed a bug that causes the parser to incorrectly mark </Tag/> or similar tags as valid self-closing tags.
Added more tests (mainly testing the cases where the parser must fail due to invalid templates)
format() function is replaced with a better one.
moved parseLoop() into the try-catch block and format() function was moved before.
</Tag/>
or similar tags as valid self-closing tags.format()
function is replaced with a better one.parseLoop()
into the try-catch block andformat()
function was moved before.