small imprv
This commit is contained in:
5
cont.py
5
cont.py
@@ -78,8 +78,9 @@ def post(name='index'):
|
||||
spi=[]
|
||||
|
||||
if not page is None:
|
||||
page = page_defaults(page,is_index,path)
|
||||
return render_template(page["template"], ld=ld, post=page, sp=sp, spi=spi, path=path)
|
||||
page_defaults(page,is_index,path)
|
||||
app.logger.info("Render Template"+page["template"] +"for "+path)
|
||||
return render_template(page["template"], ld=ld, post=page, sp=sp, spi=spi, pth=path)
|
||||
|
||||
if os.path.exists('{}/{}'.format(FLATPAGES_ROOT,path)):
|
||||
return send_from_directory(FLATPAGES_ROOT,path)
|
||||
|
||||
Reference in New Issue
Block a user