is return template('header',headerStuff=stuff) + template('footer',footerStuff=stuff2) a valid expression, and does it return a header+footer page like expected?
NOTE: another possible formulation of this idea is to use the bottle.include() function like:
@route('eg')
def routeExample():
html = include('header',headerStuff=stuff)
html += include('footer',footerStuff=stuff2)
return html
Should we use this dynamic-build paradigm to build pages in the @route() definitions, or should we have page-level .tpl files like we do now (e.g. main_body.tpl, research.tpl, finances.tpl)?
is
return template('header',headerStuff=stuff) + template('footer',footerStuff=stuff2)
a valid expression, and does it return a header+footer page like expected?NOTE: another possible formulation of this idea is to use the bottle.include() function like:
Should we use this dynamic-build paradigm to build pages in the @route() definitions, or should we have page-level .tpl files like we do now (e.g.
main_body.tpl
,research.tpl
,finances.tpl
)?