Comparing version 0.2.3 to 0.2.4
@@ -112,3 +112,3 @@ /** | ||
if (!layer.supportBigPipe() || !attr.mode || attr.mode === 'sync' || layer.isPagelet) { | ||
if (!layer.supportBigPipe() || !attr.mode || attr.mode === 'sync') { | ||
layer.load(id); | ||
@@ -125,2 +125,3 @@ return this.compileFile(pathname, options); | ||
id: attr.id, | ||
lazy: attr.lazy === 'true', | ||
mode: attr.mode, | ||
@@ -140,2 +141,2 @@ locals: locals, | ||
}; | ||
}; | ||
}; |
{ | ||
"name": "yog-swig", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "custom swig template, add some tag or filter ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
var ignore = 'ignore', | ||
missing = 'missing', | ||
only = 'only', | ||
attrs = ["id", "mode", "group", "for", "model"]; | ||
attrs = ["id", "mode", "group", "for", "model", "lazy", "cache"]; | ||
@@ -6,0 +6,0 @@ /** |
var ignore = 'ignore', | ||
missing = 'missing', | ||
only = 'only', | ||
attrs = ["id", "mode", "group", "for", "model"]; | ||
attrs = ["id", "mode", "group", "for", "model", "lazy", "cache"]; | ||
@@ -6,0 +6,0 @@ /** |
23377
597