diff --git a/demo/cabaret/static/css.css b/demo/cabaret/static/css.css index 8d6d97d..7fd84db 100644 --- a/demo/cabaret/static/css.css +++ b/demo/cabaret/static/css.css @@ -21,3 +21,12 @@ figure svg { -moz-transition: all 500ms ease-out; transition: all 500ms ease-out; } + +.side { + min-width: 400px; +} + +label { + font-variant: small-caps; + color: #777; +} diff --git a/demo/cabaret/templates/_layout.jinja2 b/demo/cabaret/templates/_layout.jinja2 index 670646e..26a8ed6 100644 --- a/demo/cabaret/templates/_layout.jinja2 +++ b/demo/cabaret/templates/_layout.jinja2 @@ -8,7 +8,7 @@ - + {# #} @@ -27,11 +27,9 @@
-
-
- {% block side %} - {% endblock side %} -
+
+ {% block side %} + {% endblock side %}
{% block section %} diff --git a/demo/cabaret/templates/index.jinja2 b/demo/cabaret/templates/index.jinja2 index 669b702..c0da29c 100644 --- a/demo/cabaret/templates/index.jinja2 +++ b/demo/cabaret/templates/index.jinja2 @@ -1,16 +1,17 @@ {% extends '_layout.jinja2' %} {% block side %} -
+
+ Main
@@ -46,6 +47,7 @@ {% for group, keys in configs | groupby('category') %}
+ {{ group }} {% for key in keys if key.name not in ['js', 'css', 'style'] %} {% set doc = 'title="' + key.doc + '
' + key.subdoc + '"' %}
diff --git a/pygal/config.py b/pygal/config.py index d76f7e2..8816e7c 100644 --- a/pygal/config.py +++ b/pygal/config.py @@ -32,7 +32,7 @@ CONFIG_ITEMS = [] class Key(object): - categories = [] + _categories = [] def __init__( self, default_value, type_, category, doc, @@ -45,8 +45,8 @@ class Key(object): self.subdoc = subdoc self.subtype = subtype self.name = "Unbound" - if not category in self.categories: - self.categories.append(category) + if not category in self._categories: + self._categories.append(category) CONFIG_ITEMS.append(self)