Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 406 Bytes
layout title
default
How to concatenate two rendered templates?

How to concatenate two rendered templates?

Problem:

How to concatenate two rendered templates?

Solution:

render = web.template.render('templates')

def GET(): 
    article = render.article() 
    comments = render.comments() 
    return render.index(unicode(article), unicode(comments))