##// END OF EJS Templates
Load pygment definitions in latex base
Load pygment definitions in latex base

File last commit:

r12658:7f9e1177
r12669:7da422b2
Show More
null.tpl
60 lines | 2.0 KiB | application/vnd.groove-tool-template | SmartyLexer
{#
DO NOT USE THIS AS A BASE,
IF YOU ARE COPY AND PASTING THIS FILE
YOU ARE PROBABLY DOING THINGS INCORRECTLY.
Null template, does nothing except defining a basic structure
To layout the different blocks of a notebook.
Subtemplates can override blocks to define their custom representation.
If one of the block you do overwrite is not a leave block, consider
calling super.
{%- block nonLeaveBlock -%}
#add stuff at beginning
{{ super() }}
#add stuff at end
{%- endblock nonLeaveBlock -%}
consider calling super even if it is a leave block, we might insert more blocks later.
#}
{%- block header -%}
{%- endblock header -%}
{%- block body -%}
{%- for worksheet in nb.worksheets -%}
{%- for cell in worksheet.cells -%}
{%- block any_cell scoped -%}
{%- if cell.cell_type in ['code'] -%}
{%- block codecell scoped -%}
{%- block input_group -%}
{%- include 'cell_input.tpl' -%}
{%- endblock input_group -%}
{%- if cell.outputs -%}
{%- block output_group -%}
{%- include 'cell_outputs.tpl' -%}
{%- endblock output_group -%}
{%- endif -%}
{%- endblock codecell -%}
{%- elif cell.cell_type in ['markdown'] -%}
{%- block markdowncell scoped-%}
{%- endblock markdowncell -%}
{%- elif cell.cell_type in ['heading'] -%}
{%- block headingcell scoped-%}
{%- endblock headingcell -%}
{%- elif cell.cell_type in ['raw'] -%}
{%- block rawcell scoped-%}
{%- endblock rawcell -%}
{%- else -%}
{%- block unknowncell scoped-%}
{%- endblock unknowncell -%}
{%- endif -%}
{%- endblock any_cell -%}
{%- endfor -%}
{%- endfor -%}
{%- endblock body -%}
{%- block footer -%}
{%- endblock footer -%}