{% endblock %}
</script>
<style>
-body { background-color: #aaaa00; }
+body { background-color: {{background_color}}; }
table { width: 100%; }
td, th { vertical-align: top; text-align: left; }
{% block css %}
tmpl_ctx: _TemplateContext
) -> None:
tmpl = self.server.jinja.get_template(str(tmpl_name))
+ tmpl_ctx['background_color'] = self.server.config.background_color
tmpl_ctx['page_names'] = PAGE_NAMES
html = tmpl.render(**tmpl_ctx)
self._send_http(bytes(html, 'utf8'))
DEFAULTS = {
'host': '127.0.0.1', # NB: to be found remotely, use '0.0.0.0'!
'port': 8090,
- 'port_remote': 8090
+ 'port_remote': 8090,
+ 'background_color': '#ffffff'
}
# type definitions for mypy
port: int
port_remote: int
api_key: str
+ background_color: str
def __init__(self):
def set_attrs_from_dict(d):