You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)?
The text was updated successfully, but these errors were encountered:
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
)?The text was updated successfully, but these errors were encountered: