mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
fix existing tags
new tags: for,cycle
This commit is contained in:
+6
-1
@@ -26,7 +26,12 @@ module.exports = function(Tag) {
|
||||
var template;
|
||||
if (token.type == 'tag') {
|
||||
if (this.trigger(`tag:${token.name}`, token)) continue;
|
||||
template = parseTag(token, this.tokens);
|
||||
if (token.name === 'continue' || token.name === 'break'){
|
||||
template = token;
|
||||
}
|
||||
else{
|
||||
template = parseTag(token, this.tokens);
|
||||
}
|
||||
} else {
|
||||
template = token;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user