##// END OF EJS Templates
move raw cell inclusion to null.tpl...
MinRK -
Show More
@@ -65,10 +65,6 b' In [{{ cell.prompt_number }}]:'
65 65 </div>
66 66 {% endblock headingcell %}
67 67
68 {% block rawcell scoped %}
69 {{ cell.source }}
70 {% endblock rawcell %}
71
72 68 {% block unknowncell scoped %}
73 69 unknown type {{ cell.type }}
74 70 {% endblock unknowncell %}
@@ -218,11 +218,6 b' This template does not define a docclass, the inheriting class must define this.'
218 218 ((( cell.source | citation2latex | markdown2latex )))
219 219 ((* endblock markdowncell *))
220 220
221 % Spit out the contents of raw cells unmodified
222 ((* block rawcell scoped *))
223 ((( cell.source )))
224 ((* endblock rawcell *))
225
226 221 % Don't display unknown types
227 222 ((* block unknowncell scoped *))
228 223 ((* endblock unknowncell *))
@@ -81,6 +81,9 b' consider calling super even if it is a leave block, we might insert more blocks '
81 81 ((*- endblock headingcell -*))
82 82 ((*- elif cell.cell_type in ['raw'] -*))
83 83 ((*- block rawcell scoped-*))
84 ((* if cell.metadata.get('raw_format', resources.get('raw_format')) == resources.get('raw_format') *))
85 ((( cell.source )))
86 ((* endif *))
84 87 ((*- endblock rawcell -*))
85 88 ((*- else -*))
86 89 ((*- block unknowncell scoped-*))
@@ -63,10 +63,6 b''
63 63 {{ '#' * cell.level }} {{ cell.source | replace('\n', ' ') }}
64 64 {% endblock headingcell %}
65 65
66 {% block rawcell scoped %}
67 {{ cell.source }}
68 {% endblock rawcell %}
69
70 66 {% block unknowncell scoped %}
71 67 unknown type {{ cell.type }}
72 68 {% endblock unknowncell %} No newline at end of file
@@ -46,10 +46,6 b' it introduces a new line'
46 46 {{ '#' * cell.level }}{{ cell.source | replace('\n', ' ') | comment_lines }}
47 47 {% endblock headingcell %}
48 48
49 {% block rawcell scoped %}
50 {{ cell.source | comment_lines }}
51 {% endblock rawcell %}
52
53 49 {% block unknowncell scoped %}
54 50 unknown type {{ cell.type }}
55 51 {% endblock unknowncell %} No newline at end of file
@@ -75,10 +75,6 b''
75 75 {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }}
76 76 {% endblock headingcell %}
77 77
78 {% block rawcell scoped %}
79 {{ cell.source }}
80 {% endblock rawcell %}
81
82 78 {% block unknowncell scoped %}
83 79 unknown type {{cell.type}}
84 80 {% endblock unknowncell %}
@@ -77,6 +77,9 b' consider calling super even if it is a leave block, we might insert more blocks '
77 77 {%- endblock headingcell -%}
78 78 {%- elif cell.cell_type in ['raw'] -%}
79 79 {%- block rawcell scoped-%}
80 {% if cell.metadata.get('raw_format', resources.get('raw_format', '')).lower() in resources.get('raw_formats', ['']) %}
81 {{ cell.source }}
82 {% endif %}
80 83 {%- endblock rawcell -%}
81 84 {%- else -%}
82 85 {%- block unknowncell scoped-%}
General Comments 0
You need to be logged in to leave comments. Login now