##// END OF EJS Templates
Small comment fixes
Jonathan Frederic -
Show More
@@ -1,60 +1,60 b''
1 {#
1 {#
2
2
3 DO NOT USE THIS AS A BASE WORK,
3 DO NOT USE THIS AS A BASE,
4 IF YOU ARE COPY AND PASTING THIS FILE
4 IF YOU ARE COPY AND PASTING THIS FILE
5 YOU ARE PROBABLY DOING THINGS WRONG.
5 YOU ARE PROBABLY DOING THINGS INCORRECTLY.
6
6
7 Null template, Does nothing except defining a basic structure
7 Null template, does nothing except defining a basic structure
8 To layout the different blocks of a notebook.
8 To layout the different blocks of a notebook.
9
9
10 Subtemplates can override blocks to define their custom representation.
10 Subtemplates can override blocks to define their custom representation.
11
11
12 If one of the block you do overwrite is not a leave block, consider
12 If one of the block you do overwrite is not a leave block, consider
13 calling super.
13 calling super.
14
14
15 {%- block nonLeaveBlock -%}
15 {%- block nonLeaveBlock -%}
16 #add stuff at beginning
16 #add stuff at beginning
17 {{ super() }}
17 {{ super() }}
18 #add stuff at end
18 #add stuff at end
19 {%- endblock nonLeaveBlock -%}
19 {%- endblock nonLeaveBlock -%}
20
20
21 consider calling super even if it is a leave block, we might insert more blocks later.
21 consider calling super even if it is a leave block, we might insert more blocks later.
22
22
23 #}
23 #}
24 {%- block header -%}
24 {%- block header -%}
25 {%- endblock header -%}
25 {%- endblock header -%}
26 {%- block body -%}
26 {%- block body -%}
27 {%- for worksheet in nb.worksheets -%}
27 {%- for worksheet in nb.worksheets -%}
28 {%- for cell in worksheet.cells -%}
28 {%- for cell in worksheet.cells -%}
29 {%- block any_cell scoped -%}
29 {%- block any_cell scoped -%}
30 {%- if cell.cell_type in ['code'] -%}
30 {%- if cell.cell_type in ['code'] -%}
31 {%- block codecell scoped -%}
31 {%- block codecell scoped -%}
32 {%- block input_group -%}
32 {%- block input_group -%}
33 {%- include 'cell_input.tpl' -%}
33 {%- include 'cell_input.tpl' -%}
34 {%- endblock input_group -%}
34 {%- endblock input_group -%}
35 {%- if cell.outputs -%}
35 {%- if cell.outputs -%}
36 {%- block output_group -%}
36 {%- block output_group -%}
37 {%- include 'cell_outputs.tpl' -%}
37 {%- include 'cell_outputs.tpl' -%}
38 {%- endblock output_group -%}
38 {%- endblock output_group -%}
39 {%- endif -%}
39 {%- endif -%}
40 {%- endblock codecell -%}
40 {%- endblock codecell -%}
41 {%- elif cell.cell_type in ['markdown'] -%}
41 {%- elif cell.cell_type in ['markdown'] -%}
42 {%- block markdowncell scoped-%}
42 {%- block markdowncell scoped-%}
43 {%- endblock markdowncell -%}
43 {%- endblock markdowncell -%}
44 {%- elif cell.cell_type in ['heading'] -%}
44 {%- elif cell.cell_type in ['heading'] -%}
45 {%- block headingcell scoped-%}
45 {%- block headingcell scoped-%}
46 {%- endblock headingcell -%}
46 {%- endblock headingcell -%}
47 {%- elif cell.cell_type in ['raw'] -%}
47 {%- elif cell.cell_type in ['raw'] -%}
48 {%- block rawcell scoped-%}
48 {%- block rawcell scoped-%}
49 {%- endblock rawcell -%}
49 {%- endblock rawcell -%}
50 {%- else -%}
50 {%- else -%}
51 {%- block unknowncell scoped-%}
51 {%- block unknowncell scoped-%}
52 {%- endblock unknowncell -%}
52 {%- endblock unknowncell -%}
53 {%- endif -%}
53 {%- endif -%}
54 {%- endblock any_cell -%}
54 {%- endblock any_cell -%}
55 {%- endfor -%}
55 {%- endfor -%}
56 {%- endfor -%}
56 {%- endfor -%}
57 {%- endblock body -%}
57 {%- endblock body -%}
58
58
59 {%- block footer -%}
59 {%- block footer -%}
60 {%- endblock footer -%}
60 {%- endblock footer -%}
General Comments 0
You need to be logged in to leave comments. Login now