pngtile/application.py
changeset 139 8eff4a9fdd5e
parent 138 59d61da2b64f
child 146 0f2a918eb90a
equal deleted inserted replaced
138:59d61da2b64f 139:8eff4a9fdd5e
    91             return error
    91             return error
    92 
    92 
    93     STYLESHEETS = ( )
    93     STYLESHEETS = ( )
    94     SCRIPTS = ( )
    94     SCRIPTS = ( )
    95 
    95 
    96     def render_html (self, title, body, stylesheets=None, scripts=None):
    96     def render_html (self, title, body, stylesheets=None, scripts=None, end=()):
    97         if stylesheets is None:
    97         if stylesheets is None:
    98             stylesheets = self.STYLESHEETS
    98             stylesheets = self.STYLESHEETS
    99 
    99 
   100         if scripts is None:
   100         if scripts is None:
   101             scripts = self.SCRIPTS
   101             scripts = self.SCRIPTS
   108                 ]
   108                 ]
   109             ),
   109             ),
   110             html.body(
   110             html.body(
   111                 *(body + tuple(
   111                 *(body + tuple(
   112                     html.script(src=src) for src in scripts
   112                     html.script(src=src) for src in scripts
   113                 ))
   113                 ) + end)
   114             ),
   114             ),
   115         ])
   115         ])
   116 
   116 
   117 
   117