Creates a reusable close-condition function that matches block end tags
([[/name]]) for one or more block names.
The returned function inspects the tokens at ctx.pos and returns both
whether a match was found and how many tokens the closing tag occupies
(including the optional trailing NEWLINE).
Creates a reusable close-condition function that matches block end tags (
[[/name]]) for one or more block names.The returned function inspects the tokens at
ctx.posand returns both whether a match was found and how many tokens the closing tag occupies (including the optional trailing NEWLINE).