html_basic.tpl
148 lines
| 3.1 KiB
| application/vnd.groove-tool-template
|
SmartyLexer
Matthias BUSSONNIER
|
r9599 | {%- extends 'display_priority.tpl' -%} | ||
Matthias BUSSONNIER
|
r9580 | |||
Matthias BUSSONNIER
|
r9590 | {% block codecell %} | ||
Matthias BUSSONNIER
|
r13332 | <div class="cell border-box-sizing code_cell"> | ||
damianavila
|
r11770 | {{ super() }} | ||
</div> | ||||
Matthias BUSSONNIER
|
r9591 | {%- endblock codecell %} | ||
Matthias BUSSONNIER
|
r9590 | |||
{% block input_group -%} | ||||
Matthias BUSSONNIER
|
r12918 | <div class="input"> | ||
damianavila
|
r11770 | {{ super() }} | ||
Matthias BUSSONNIER
|
r9580 | </div> | ||
Matthias BUSSONNIER
|
r9590 | {% endblock input_group %} | ||
MinRK
|
r10041 | {% block output_group %} | ||
Matthias BUSSONNIER
|
r12918 | <div class="output_wrapper"> | ||
Matthias BUSSONNIER
|
r13332 | <div class="output"> | ||
Matthias BUSSONNIER
|
r9823 | {{ super() }} | ||
Matthias BUSSONNIER
|
r9580 | </div> | ||
damianavila
|
r9707 | </div> | ||
Matthias BUSSONNIER
|
r9590 | {% endblock output_group %} | ||
{% block in_prompt -%} | ||||
damianavila
|
r11770 | <div class="prompt input_prompt"> | ||
In [{{ cell.prompt_number }}]: | ||||
</div> | ||||
Matthias BUSSONNIER
|
r9590 | {%- endblock in_prompt %} | ||
MinRK
|
r10041 | {# | ||
output_prompt doesn't do anything in HTML, | ||||
because there is a prompt div in each output area (see output block) | ||||
#} | ||||
{% block output_prompt %} | ||||
Matthias BUSSONNIER
|
r9590 | {% endblock output_prompt %} | ||
{% block input %} | ||||
<div class="input_area box-flex1"> | ||||
Pablo de Oliveira
|
r12577 | {{ cell.input | highlight2html(metadata=cell.metadata) }} | ||
Matthias BUSSONNIER
|
r9591 | </div> | ||
Matthias BUSSONNIER
|
r9590 | {%- endblock input %} | ||
MinRK
|
r10041 | {% block output %} | ||
Matthias BUSSONNIER
|
r12918 | <div class="output_area"> | ||
MinRK
|
r10041 | {%- if output.output_type == 'pyout' -%} | ||
damianavila
|
r11770 | <div class="prompt output_prompt"> | ||
Out[{{ cell.prompt_number }}]: | ||||
MinRK
|
r10041 | {%- else -%} | ||
damianavila
|
r11770 | <div class="prompt"> | ||
MinRK
|
r10041 | {%- endif -%} | ||
damianavila
|
r11770 | </div> | ||
MinRK
|
r10041 | {{ super() }} | ||
</div> | ||||
{% endblock output %} | ||||
Matthias BUSSONNIER
|
r9580 | |||
Matthias BUSSONNIER
|
r9591 | {% block markdowncell scoped %} | ||
Matthias BUSSONNIER
|
r9580 | <div class="text_cell_render border-box-sizing rendered_html"> | ||
MinRK
|
r12864 | {{ cell.source | markdown2html | strip_files_prefix }} | ||
Matthias BUSSONNIER
|
r9580 | </div> | ||
{%- endblock markdowncell %} | ||||
{% block headingcell scoped %} | ||||
<div class="text_cell_render border-box-sizing rendered_html"> | ||||
MinRK
|
r12864 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2html | strip_files_prefix | add_anchor }} | ||
Matthias BUSSONNIER
|
r9580 | </div> | ||
{% endblock headingcell %} | ||||
{% block rawcell scoped %} | ||||
Matthias BUSSONNIER
|
r9592 | {{ cell.source }} | ||
Matthias BUSSONNIER
|
r9580 | {% endblock rawcell %} | ||
{% block unknowncell scoped %} | ||||
damianavila
|
r11770 | unknown type {{ cell.type }} | ||
Matthias BUSSONNIER
|
r9580 | {% endblock unknowncell %} | ||
Matthias BUSSONNIER
|
r9590 | |||
{% block pyout -%} | ||||
Matthias BUSSONNIER
|
r9637 | <div class="box-flex1 output_subarea output_pyout"> | ||
damianavila
|
r11770 | {% block data_priority scoped %} | ||
{{ super() }} | ||||
{% endblock %} | ||||
Matthias BUSSONNIER
|
r9590 | </div> | ||
{%- endblock pyout %} | ||||
Matthias BUSSONNIER
|
r9600 | {% block stream_stdout -%} | ||
Matthias BUSSONNIER
|
r9637 | <div class="box-flex1 output_subarea output_stream output_stdout"> | ||
damianavila
|
r11770 | <pre> | ||
{{ output.text | ansi2html }} | ||||
</pre> | ||||
Matthias BUSSONNIER
|
r9590 | </div> | ||
Matthias BUSSONNIER
|
r9600 | {%- endblock stream_stdout %} | ||
{% block stream_stderr -%} | ||||
Matthias BUSSONNIER
|
r9637 | <div class="box-flex1 output_subarea output_stream output_stderr"> | ||
damianavila
|
r11770 | <pre> | ||
{{ output.text | ansi2html }} | ||||
</pre> | ||||
Matthias BUSSONNIER
|
r9600 | </div> | ||
{%- endblock stream_stderr %} | ||||
Matthias BUSSONNIER
|
r9592 | |||
Matthias BUSSONNIER
|
r9599 | {% block data_svg -%} | ||
damianavila
|
r11770 | {{ output.svg }} | ||
Matthias BUSSONNIER
|
r9599 | {%- endblock data_svg %} | ||
Matthias BUSSONNIER
|
r9592 | |||
Matthias BUSSONNIER
|
r9600 | {% block data_html -%} | ||
<div class="output_html rendered_html"> | ||||
damianavila
|
r11770 | {{ output.html }} | ||
Matthias BUSSONNIER
|
r9599 | </div> | ||
{%- endblock data_html %} | ||||
{% block data_png %} | ||||
damianavila
|
r11770 | <img src="data:image/png;base64,{{ output.png }}"> | ||
Matthias BUSSONNIER
|
r9599 | {%- endblock data_png %} | ||
{% block data_jpg %} | ||||
damianavila
|
r11770 | <img src="data:image/jpeg;base64,{{ output.jpeg }}"> | ||
Matthias BUSSONNIER
|
r9599 | {%- endblock data_jpg %} | ||
{% block data_latex %} | ||||
damianavila
|
r11770 | {{ output.latex }} | ||
Matthias BUSSONNIER
|
r9599 | {%- endblock data_latex %} | ||
Matthias BUSSONNIER
|
r9592 | {% block pyerr -%} | ||
Matthias BUSSONNIER
|
r9637 | <div class="box-flex1 output_subarea output_pyerr"> | ||
damianavila
|
r11770 | <pre>{{ super() }}</pre> | ||
Matthias BUSSONNIER
|
r9592 | </div> | ||
{%- endblock pyerr %} | ||||
{%- block traceback_line %} | ||||
damianavila
|
r11770 | {{ line | ansi2html }} | ||
Matthias BUSSONNIER
|
r9592 | {%- endblock traceback_line %} | ||
Matthias BUSSONNIER
|
r9599 | |||
{%- block data_text %} | ||||
damianavila
|
r11770 | <pre> | ||
{{ output.text | ansi2html }} | ||||
</pre> | ||||
Matthias BUSSONNIER
|
r9599 | {%- endblock -%} | ||
Matthias BUSSONNIER
|
r9600 | |||
MinRK
|
r12446 | {%- block data_javascript %} | ||
<script type="text/javascript"> | ||||
{{ output.javascript }} | ||||
</script> | ||||
{%- endblock -%} | ||||
Matthias BUSSONNIER
|
r9600 | {%- block display_data scoped -%} | ||
Matthias BUSSONNIER
|
r9637 | <div class="box-flex1 output_subarea output_display_data"> | ||
damianavila
|
r11770 | {{ super() }} | ||
Matthias BUSSONNIER
|
r9600 | </div> | ||
Matthias BUSSONNIER
|
r12918 | {%- endblock display_data -%} | ||