basichtml.tpl
131 lines
| 2.7 KiB
| application/vnd.groove-tool-template
|
SmartyLexer
/ templates / basichtml.tpl
|
r9599 | {%- extends 'display_priority.tpl' -%} | |
|
r9580 | ||
|
r9590 | {% block codecell %} | |
|
r9580 | <div class="cell border-box-sizing code_cell vbox"> | |
|
r9591 | {{ super() }}</div> | |
{%- endblock codecell %} | |||
|
r9590 | ||
{% block input_group -%} | |||
<div class="input hbox"> | |||
{{super()}} | |||
|
r9580 | </div> | |
|
r9590 | {% endblock input_group %} | |
{% block output_group -%} | |||
|
r9703 | <div class="vbox output_wrapper"> | |
|
r9580 | <div class="output vbox"> | |
|
r9703 | <div class="hbox output_area"> | |
|
r9590 | {{ super() }} | |
|
r9580 | </div> | |
</div> | |||
|
r9707 | </div> | |
|
r9590 | {% endblock output_group %} | |
{% block in_prompt -%} | |||
<div class="prompt input_prompt">In [{{cell.prompt_number}}]:</div> | |||
{%- endblock in_prompt %} | |||
{% block output_prompt -%} | |||
|
r9591 | <div class="prompt output_prompt"> | |
|
r9592 | {%- if cell.haspyout -%} | |
|
r9591 | Out[{{cell.prompt_number}}]: | |
{%- endif -%} | |||
</div> | |||
|
r9590 | {% endblock output_prompt %} | |
{% block input %} | |||
<div class="input_area box-flex1"> | |||
|
r9591 | {{cell.input | highlight }} | |
</div> | |||
|
r9590 | {%- endblock input %} | |
|
r9580 | ||
|
r9591 | {% block markdowncell scoped %} | |
|
r9580 | <div class="text_cell_render border-box-sizing rendered_html"> | |
{{ cell.source | markdown| rm_fake}} | |||
</div> | |||
{%- endblock markdowncell %} | |||
{% block headingcell scoped %} | |||
<div class="text_cell_render border-box-sizing rendered_html"> | |||
<h{{cell.level}}> | |||
{{cell.source}} | |||
</h{{cell.level}}> | |||
</div> | |||
{% endblock headingcell %} | |||
{% block rawcell scoped %} | |||
|
r9592 | {{ cell.source }} | |
|
r9580 | {% endblock rawcell %} | |
{% block unknowncell scoped %} | |||
unknown type {{cell.type}} | |||
{% endblock unknowncell %} | |||
|
r9590 | ||
{% block pyout -%} | |||
|
r9637 | <div class="box-flex1 output_subarea output_pyout"> | |
|
r9599 | {% block data_priority scoped %}{{ super()}}{% endblock %} | |
|
r9590 | </div> | |
{%- endblock pyout %} | |||
|
r9600 | {% block stream_stdout -%} | |
|
r9637 | <div class="box-flex1 output_subarea output_stream output_stdout"> | |
|
r9592 | <pre>{{output.text |ansi2html}}</pre> | |
|
r9590 | </div> | |
|
r9600 | {%- endblock stream_stdout %} | |
{% block stream_stderr -%} | |||
|
r9637 | <div class="box-flex1 output_subarea output_stream output_stderr"> | |
|
r9600 | <pre>{{output.text |ansi2html}}</pre> | |
</div> | |||
{%- endblock stream_stderr %} | |||
|
r9592 | ||
|
r9599 | {% block data_svg -%} | |
|
r9592 | {{output.svg}} | |
|
r9599 | {%- endblock data_svg %} | |
|
r9592 | ||
|
r9600 | {% block data_html -%} | |
<div class="output_html rendered_html"> | |||
|
r9599 | {{output.html}} | |
</div> | |||
{%- endblock data_html %} | |||
{% block data_png %} | |||
<img src="data:image/png;base64,{{output.png}}"></img> | |||
{%- endblock data_png %} | |||
{% block data_jpg %} | |||
<img src="data:image/jpeg;base64,{{output.jpeg}}"></img> | |||
{%- endblock data_jpg %} | |||
{% block data_latex %} | |||
{{output.latex}} | |||
{%- endblock data_latex %} | |||
|
r9592 | {% block pyerr -%} | |
|
r9637 | <div class="box-flex1 output_subarea output_pyerr"> | |
|
r9592 | <pre>{{super()}}</pre> | |
</div> | |||
{%- endblock pyerr %} | |||
{%- block traceback_line %} | |||
{{line| ansi2html}} | |||
{%- endblock traceback_line %} | |||
|
r9599 | ||
{%- block data_text %} | |||
|
r9703 | <pre>{{output.text | ansi2html}}</pre> | |
|
r9599 | {%- endblock -%} | |
|
r9600 | ||
{%- block display_data scoped -%} | |||
|
r9637 | <div class="box-flex1 output_subarea output_display_data"> | |
|
r9600 | {{super()}} | |
</div> | |||
|
r9703 | {%- endblock display_data -%} |