##// END OF EJS Templates
add any-cell block
Matthias BUSSONNIER -
Show More
@@ -1,25 +1,27
1 {%- block header -%}
1 {%- block header -%}
2 {%- endblock header -%}
2 {%- endblock header -%}
3 {%- block body -%}
3 {%- block body -%}
4 {%- for cell in cells -%}
4 {%- for cell in cells -%}
5 {%- if cell.type in ['code'] -%}
5 {%- block any_cell scoped -%}
6 {%- block codecell scoped-%}
6 {%- if cell.type in ['code'] -%}
7 {%- endblock codecell-%}
7 {%- block codecell scoped-%}
8 {%- elif cell.type in ['markdown'] -%}
8 {%- endblock codecell-%}
9 {%- block markdowncell scoped-%}
9 {%- elif cell.type in ['markdown'] -%}
10 {%- endblock markdowncell -%}
10 {%- block markdowncell scoped-%}
11 {%- elif cell.type in ['heading'] -%}
11 {%- endblock markdowncell -%}
12 {%- block headingcell scoped-%}
12 {%- elif cell.type in ['heading'] -%}
13 {%- endblock headingcell -%}
13 {%- block headingcell scoped-%}
14 {%- elif cell.type in ['raw'] -%}
14 {%- endblock headingcell -%}
15 {%- block rawcell scoped-%}
15 {%- elif cell.type in ['raw'] -%}
16 {%- endblock rawcell -%}
16 {%- block rawcell scoped-%}
17 {%- else -%}
17 {%- endblock rawcell -%}
18 {%- block unknowncell scoped-%}
18 {%- else -%}
19 {%- endblock unknowncell -%}
19 {%- block unknowncell scoped-%}
20 {%- endif -%}
20 {%- endblock unknowncell -%}
21 {%- endif -%}
22 {%- endblock any_cell -%}
21 {%- endfor -%}
23 {%- endfor -%}
22 {%- endblock body -%}
24 {%- endblock body -%}
23
25
24 {%- block footer -%}
26 {%- block footer -%}
25 {%- endblock footer -%}
27 {%- endblock footer -%}
@@ -1,10 +1,9
1 {%- extends 'python.tpl' -%}
1 {%- extends 'python.tpl' -%}
2
2
3 {% block codecell %}
3 {% block any_cell %}
4 ==============================
4 ==============================
5 =======start codecell=========
5 =======start {{cell.type}}=========
6 {{ super() }}
6 {{ super() }}
7 ======= end codecell =========
7 ======= end {{cell.type}} =========
8 ==============================
8 =============================={% endblock any_cell %}
9 {% endblock codecell %}
10
9
General Comments 0
You need to be logged in to leave comments. Login now