# HG changeset patch # User Tero Marttila # Date 1410725865 -10800 # Node ID 8eff4a9fdd5ea9cd26bd27dfd281509660c046ad # Parent 59d61da2b64f22098e482c4777ec735a3f2665a4 pngtile.application: BaseApplication.render_html(end=...) to place scripts at end of body, after script-src's diff -r 59d61da2b64f -r 8eff4a9fdd5e pngtile/application.py --- a/pngtile/application.py Sun Sep 14 18:04:11 2014 +0300 +++ b/pngtile/application.py Sun Sep 14 23:17:45 2014 +0300 @@ -93,7 +93,7 @@ STYLESHEETS = ( ) SCRIPTS = ( ) - def render_html (self, title, body, stylesheets=None, scripts=None): + def render_html (self, title, body, stylesheets=None, scripts=None, end=()): if stylesheets is None: stylesheets = self.STYLESHEETS @@ -110,7 +110,7 @@ html.body( *(body + tuple( html.script(src=src) for src in scripts - )) + ) + end) ), ])