web2py server-side comments

Posted by MikeWyatt on Stack Overflow See other posts from Stack Overflow or by MikeWyatt
Published on 2010-05-21T01:38:54Z Indexed on 2010/05/21 1:40 UTC
Read the original article Hit count: 264

Filed under:
|
|

In a web2py view, how do I comment out server-side code? In ASP.NET, I can surround any HTML or code tags with <%-- and --%> and that block will not be compiled or sent to the client. Velocity does the same thing with #* and *#. Is there an equivalent in web2py?

ASP.NET

<div>
    <p><%=foo.bar%></p>
    <%-- don't print twice! <p><%=foo.bar%></p> --%>
</div>

web2py

<div>
    <p><%=foo.bar%></p>
    ??? don't print twice! <p><%=foo.bar%></p> ???
</div>

© Stack Overflow or respective owner

Related posts about web2py

Related posts about view