Jinja - possibly to quickly comment out code?

4,497 views
Skip to first unread message

odigity

unread,
Mar 22, 2007, 11:00:19 PM3/22/07
to colubrid-users
I've started working with Jinja (quite nice - way better than PSP).
One need that has come up almost right away is the ability to quickly
comment out code while developing/testing. Is there any way to do
this currently?

Armin Ronacher

unread,
Mar 23, 2007, 1:12:45 PM3/23/07
to colubri...@googlegroups.com
Hoi,

In Jinja 1.0 this is possible using {# foo #}.

Regards,
Armin

odigity

unread,
Mar 24, 2007, 7:18:42 PM3/24/07
to colubrid-users
Been reading the 1.0 docs - very nicely done!

It occurs to me that {% raw %}{% endraw %} is actually even more
useful than {# #} for commenting out blocks of code - it will still
show up in html, but when developing/testing, you can ignore that. The
important thing is that the execution of the commented out code was
prevented.

Can't wait to start using 1.0...

Reply all
Reply to author
Forward
0 new messages