Anthony, this is what I was looking for. Thanks! I am trying not to build 
the html myself and use the helpers instead. I am going for readability and 
ease of use for others to modify later. In all the examples in the book 
nowhere did it show the append and insert for the HTML helpers I looked at. 

The gist of it was that I needed to was to not convert everything to 
strings, but make them the various helper objects so when passed to the 
TBODY and TABLE they don't add <tr><td>


tbody=TBODY()
headerrow=TR()


#######################################################
#big fancy query loop and processing to accomplish the following#
headerrow.append('column 1') 
tbody.append(TR(TD('db data processed and gussied up')))
#######################################################


thead=THEAD(headerrow)
table=TABLE(_class='pure-table pure-table-bordered')
table.append(thead)
table.append(tbody)
htmltable=XML(table)

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to