开发者

how to use "{% include 'a.html '%}" in a javascript expression on google-app-engine

this is my code:

$('.left').html("{% include 'foot.html' %}")

it will show err开发者_运维问答or ,

so how to make it running.

thanks


This isn't going to do anything if your JavaScript isn't processed by webapp or Django before it gets sent to the client because the templating pseudo-language that they use will only work server-side. You'll also want to make sure you use the |safe filter or your HTML will get escaped; from what I can infer from the (very little) code you supplied this isn't the desired behavior.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜