##// END OF EJS Templates
inheritance example and doc
Matthias BUSSONNIER -
Show More
@@ -0,0 +1,10 b''
1 {%- extends 'python.tpl' -%}
2
3 {% block codecell %}
4 ==============================
5 =======start codecell=========
6 {{ super() }}
7 ======= end codecell =========
8 ==============================
9 {% endblock codecell %}
10
@@ -1,5 +1,25 b''
1 1 {%- extends 'basic.tpl' -%}
2 2
3 {#
4
5 Null template, Does nothing except defining a basic structure
6 To layout the diferents blocks of a notebook.
7
8 Subtemplates can Override Blocks to define their custom reresentation.
9
10 If one of the block you do overrite is nt a leave block, consider
11 calling super.
12
13 {% block nonLeaveBlock %}
14 #add stuff at beginning
15 {{ super() }}
16 #add stuff at end
17 {% endblock nonLeaveBlock %}
18
19 consider calling super even if block is leave block, we might insert more block later.
20
21 #}
22
3 23 {% block codecell scoped %}
4 24 {% block in_prompt %}{% endblock in_prompt %}
5 25 {% block input %}{% endblock input %}
General Comments 0
You need to be logged in to leave comments. Login now