• 796 views
  • 0 comments
  • loading...

All helpers apart from XML are derived from DIV and inherit its basic methods.




>>> print DIV('<hello>', XML('<b>world</b>'), _class='test', _id=0)

<
div id="0" class="test">&lt;hello&gt;<b>world</b></div>

loading...

Sources / Reference

" Web2py Book"


Comments

loading...

Powered by
Web2py

Hosted on
www.pythonanywhere.com
(affiliated link)