tag: tablerow

This commit is contained in:
harttle
2016-06-17 14:59:30 +08:00
parent 0b7da2abf7
commit b478c798fd
10 changed files with 234 additions and 38 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ function stringify(val) {
function factory(Filter, Tag) {
function renderTemplates(templates, scope) {
if (!scope) throw new Error('unable to evalTemplates: scope undefined');
var html = '';
templates.some(template => {
if (scope.get('forloop.skip')) return true;
@@ -45,7 +46,7 @@ function factory(Filter, Tag) {
return {
renderTemplates, evalFilter
};
};
}
factory.stringify = stringify;