开发者

Stripping server side comments in Python

开发者 https://www.devze.com 2023-01-13 04:42 出处:网络
In JSP: <%-- Comments removed in server --%> What is the equivalent when I run in Python/Django ?!?

In JSP:

<%-- Comments removed in server --%>

What is the equivalent when I run in Python/Django ?!?

I don't 开发者_StackOverflow社区want the HTML comments visible in the client side...


{% comment %}

add your comment here :-)

{% endcomment %}


You can use Django template comment block http://docs.djangoproject.com/en/dev/ref/templates/builtins/#comment

They won't be displayed on the client side, but you will see it when editing templates.

0

精彩评论

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