tmodjs icon indicating copy to clipboard operation
tmodjs copied to clipboard

一个模板中引用另一个模板无法成功

Open thethreeonee opened this issue 10 years ago • 0 comments

在模板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);

页面就正常了

thethreeonee avatar Jun 29 '15 04:06 thethreeonee