我希望在home.html
模板中包含post.html
模板,为此,我使用jquery将{% include "post.html" %}
附加到home.html
模板中
问题是它出现在home.html
类似{% include "post.html" %}
的内容中,而没有被评估为实际的post.html
内容,这就是我想要使用的问题:
$('body').append('{%include "post.html"%}')
要将post.html添加到home.html,但在home.html中,我得到的只是:
<!--home.html-->
{%include "post.html"%}
我所期望的是:
<!--home.html-->
<div>actual content of post.html</div>
目前没有回答
相关问题 更多 >
编程相关推荐