I am seeing the comments like a programmer sees comments, you comment out a bit of code when you want to temporarily disable it. I see that this is a different kind of comment to a comment where you want the generated html to contain comments. Having seen Massimo's video on floss I can see why the html comments do not affect the python execution. However for a programmer, having things within comments execute is an 'unexpected behaviour'. Any way when one knows it works in this way it is easy to work round.
Peter On Oct 29, 10:39 pm, Anthony <[email protected]> wrote: > On Saturday, October 29, 2011 1:30:58 PM UTC-4, Anthony wrote: > > > There is a function called response.include_files() that is called in > > web2py_ajax.html, which is likely included in the head of your layout.html. > > Any files added to the response.files list prior to that being called will > > be included in the head by response.include_files(). The default > > layout.html as well as web2py_ajax.html itself both add files to > > response.files. Perhaps plugin_jqgrid adds to response.files as well. > > Note, specifically regarding HTML comments, how would the template engine > be able to differentiate between your case (i.e., you want the stuff > between the HTML comments not to appear in the rendered output at all) and > the case in which you do want to render the content between the comments > (which is usually the case when you enter comments in HTML)? > > Anthony

