Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "yog-swig", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "custom swig template, add some tag or filter ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ var exports = module.exports; | ||
var code = compiler(content, parents, options, blockName); | ||
return '_output += "<body>";' + code + '_output += _ctx._yog.JS_HOOK + "</body>" + _ctx._yog.BIGPIPE_HOOK;'; | ||
return '_output += "<body>";' + code + '_output += _ctx._yog.JS_HOOK + "</body>";'; | ||
}; | ||
@@ -14,0 +14,0 @@ |
var exports = module.exports; | ||
exports.compile = function(compiler, args, content, parents, options, blockName) { | ||
content.unshift('<html>'); | ||
content.push('</html>'); | ||
var code = '_ctx._yog.setFramework(' + args.pop() + ');' + | ||
compiler(content, parents, options, blockName); | ||
return code; | ||
return '_output += "<html>";' + code + '_output += _ctx._yog.BIGPIPE_HOOK + "</html>";'; | ||
}; | ||
@@ -10,0 +8,0 @@ |
13900
328