Closed panosru closed 12 years ago
Reproducible code:
kiwi.js:
var kiwi = require('kiwi'); var template = new kiwi.Template('{{extend "template"}} {{block welcome append}} ${name}{{/block}}', { cache : false, path : __dirname + '/template.kiwi' }); template.render({name : 'panosru'}, function (err, output) { if (err) { console.log(err); return; } console.log(output.trim()); });
template.kiwi:
{{block welcome}} Hello {{/block}}
Output:
root@dev:/home/admin/example/kiwi# node kiwi.js [Error: Compilation error: Unable to parse tag `block welcome append`.]
Ah ok, it works for the development version of kiwi :)
Reproducible code:
kiwi.js:
template.kiwi:
Output: