Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7fc8d1
commit 4fccb48
Showing
1 changed file
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
--- | ||
layout: default | ||
title: | ||
title: How to concatenate two rendered templates? | ||
--- | ||
|
||
### Problem: | ||
# How to concatenate two rendered templates? | ||
|
||
How to concatenate two rendered templates? | ||
|
||
### Solution: | ||
|
||
render = web.template.render('templates') | ||
|
||
def GET(): | ||
article = render.article() | ||
comments = render.comments() | ||
### 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)) |