By the way, I would keep function definitions outside the view. And it might be better to do the truncation in the controller before passing the data to the view.
Alternatively, just handle everything with CSS: https://jsfiddle.net/antb03/adcnn15c/ Anthony On Tuesday, December 20, 2016 at 6:42:36 AM UTC-5, Pierre wrote: > > I mean a HTML <table> whose code lies in a view "as opposed to" a sqltable: > > my code looks like this: > > {{def truncstr(s,n,dots):}} > .....truncate function.......... > {{pass}} > > {{extend layout.html}} > <h1>.....header...</h1> > <div class='table-responsive'> > <table class='table'><thead><tr><th>............</th></tr></thead> > <tbody><tr><td>.....</td></tr>.......etc...</tbody></table> > </div> > > > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

