mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Fixed test for templateRoot-prependChild
This commit is contained in:
parent
795a1d495f
commit
d736a4369d
@ -5,19 +5,9 @@ function create(__helpers) {
|
||||
escapeXml = __helpers.x;
|
||||
|
||||
return function render(data, out) {
|
||||
out.w("<ul>");
|
||||
var foo = "bar";
|
||||
|
||||
forEach(data.colors, function(color) {
|
||||
foo();
|
||||
|
||||
out.w("<li>" +
|
||||
escapeXml(color) +
|
||||
"</li>");
|
||||
|
||||
bar();
|
||||
});
|
||||
|
||||
out.w("</ul>");
|
||||
out.w("<div></div>");
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -14,7 +14,5 @@ module.exports = function(builder) {
|
||||
}
|
||||
]));
|
||||
|
||||
console.log(templateRoot.body.items);
|
||||
|
||||
return templateRoot;
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user