aligned on myslice template
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 30 Nov 2012 17:52:09 +0000 (18:52 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 30 Nov 2012 17:52:09 +0000 (18:52 +0100)
slice/templates/slice.html
slice/views.py

index 2d4aa33..ac46e92 100644 (file)
@@ -1,7 +1,7 @@
 {% extends 'myslice.html' %}
 
-{% block content %}
+{% block content_main %}
 <p>The URL variable name= {{ name }} </p>
-{{ content_string|safe }}
-{% endblock content %}
+{{ content_main|safe }}
+{% endblock content_main %}
 
index 8eefd1d..d44b554 100644 (file)
@@ -11,7 +11,7 @@ Lorem <span class='bold'>ipsum dolor</span> sit amet, consectetuer adipiscing el
 
     result=render_to_response('slice.html',{'foo':'bar', 
                                             'name':name,
-                                            'content_string' : content_string,
+                                            'content_main' : content_string,
                                             'menu_items' : 
                                             [ { 'label':'item1', 'href': '/url1/'},
                                               { 'label':'Other item', 'href': '/other/'},