This all works, but I can't wrap my head around why everything after this
snippet is no longer displayed. It does not even exist in the source. For
example, my code is like this:
<div class="wrapper">
{{import os}}
{{from gluon.template import render}}
{{=XML(render(blog.body,path=os.path.join(request.folder,
'views'), context=globals()))}}
{{pass}}
<!--start-->
<div class="clear"></div>
<ul class="customer_purchase">
<li class="white">NEW USER?</li>
<li><a href="{{=URL('register')}}"><img
src="{{=URL('static','images/button_register.png')}}" alt="Login/Register
to comment!" /></a></li>
</ul>
<ul class="customer_purchase">
<li class="white">CURRENT USER?</li>
<li class="blog_form">{{=blog_form}}</li>
</ul>
<div class="clear"></div>
</div>
Everything from the inserted comment (<!--start-->) will not exist any more
after this. Go back to simple {{=XML(blog.body)}} and everything after it
displays fine. I've tried adding a pass, no pass, two passes, etc. But it
still appears from that point web2py is not recognizing regular html
anymore. Nothing after that will display at all.
--