pngtile.application: BaseApplication.render_html(end=...) to place scripts at end of body, after script-src's
--- 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)
),
])