equal
deleted
inserted
replaced
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 |