block-nested
Block nested template syntax.
Usage
var Parser = /\{%[\s\S]+?%\}/g // tags match RegExp // first match self-close tag // this judge condition is base on the condition of operator match { return /\{%[\s\S]+?\/%\}/ } // secondary match block-open tag // this judge condition is base on the condition of operator match { return !/\{%\/[\s\S]+?%\}/ } { }