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