tmodjs
tmodjs copied to clipboard
一个模板中引用另一个模板无法成功
在模板A中引用模板B,如下:
{{include "./b.html"}}
js 中:
render = template("a");
html = render();
$("body").append(html);
结果在页面上直接输出了:
function (){return new k(c)}
而如果 js 文件里改成这样:
render = template("a");
html = render({});
$("body").append(html);
页面就正常了