Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lyrillind opened this issue Jun 29, 2015 · 0 comments
Open

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

Lyrillind opened this issue Jun 29, 2015 · 0 comments

Comments

@Lyrillind
Copy link

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

页面就正常了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant