{{ }} is for Python code you don't want to display like: {{ for image in images }}
{{= }} is for some python code you like to display. {{ for image in images }} {{= image.title }} {{# }} is commenting I thought.. {{ for image in images }} {{= image.title }} {{# Other loop }} On 5 aug, 15:57, mdipierro <mdipie...@cs.depaul.edu> wrote: > You can comment individual lines {{#....}}. To comment an a multiline > block {{"""...."""} should work. What problem do you have with it? > > On Aug 5, 4:35 am, Olivier <oli...@gmail.com> wrote: > > > Hi, > > > I'd like to know how to comment blocks of code in web2py templates. > > > {# COMMENT #} does not work > > and > > {{""" COMMENT """}} works partially: simple comments works but not if > > there are code syntax. > > > I didn't find anything on this subject in the documentation. > > > By the way, I didn't find anything about the template engine in the > > documentation (except in the paid book). > > > Thank you, > > > -- > > Olivier > > Developer > > OpenERP - Tiny sprl > > Web:http://www.openerp.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---