duplicate of https://groups.google.com/d/topic/web2py/aONcRDTWE40/discussion
On Monday, January 14, 2013 4:46:44 PM UTC+1, [email protected] wrote: > > I am new to web2py and was wondering how I can go about displaying a post > excerpts on a page. e.g. {{=WIKI(post.body|truncate:30)}} or something > similar to that? Thanks in advance. > > {{ for post in posts:}} > <h2> > <a href="{{=URL(r=request,f='view_post',args=post.id)}}"> > {{=post.title}} > </a> > </h2> > {{=WIKI(post.body|truncate:30)}} > {{pass}} > --

