basichtml.tpl
132 lines
| 2.6 KiB
| application/vnd.groove-tool-template
|
SmartyLexer
/ templates / basichtml.tpl
Matthias BUSSONNIER
|
r9599 | {%- extends 'display_priority.tpl' -%} | ||
Matthias BUSSONNIER
|
r9580 | |||
Matthias BUSSONNIER
|
r9590 | {% block codecell %} | ||
Matthias BUSSONNIER
|
r9580 | <div class="cell border-box-sizing code_cell vbox"> | ||
Matthias BUSSONNIER
|
r9591 | {{ super() }}</div> | ||
{%- endblock codecell %} | ||||
Matthias BUSSONNIER
|
r9590 | |||
{% block input_group -%} | ||||
<div class="input hbox"> | ||||
{{super()}} | ||||
Matthias BUSSONNIER
|
r9580 | </div> | ||
Matthias BUSSONNIER
|
r9590 | {% endblock input_group %} | ||
{% block output_group -%} | ||||
Matthias BUSSONNIER
|
r9580 | <div class="vbox output_wrapper"> | ||
<div class="output vbox"> | ||||
<div class="hbox output_area"> | ||||
Matthias BUSSONNIER
|
r9590 | {{ super() }} | ||
Matthias BUSSONNIER
|
r9580 | </div> | ||
</div> | ||||
</div> | ||||
Matthias BUSSONNIER
|
r9590 | {% endblock output_group %} | ||
{% block in_prompt -%} | ||||
<div class="prompt input_prompt">In [{{cell.prompt_number}}]:</div> | ||||
{%- endblock in_prompt %} | ||||
{% block output_prompt -%} | ||||
Matthias BUSSONNIER
|
r9591 | <div class="prompt output_prompt"> | ||
Matthias BUSSONNIER
|
r9592 | {%- if cell.haspyout -%} | ||
Matthias BUSSONNIER
|
r9591 | Out[{{cell.prompt_number}}]: | ||
{%- endif -%} | ||||
</div> | ||||
Matthias BUSSONNIER
|
r9590 | {% endblock output_prompt %} | ||
{% block input %} | ||||
<div class="input_area box-flex1"> | ||||
Matthias BUSSONNIER
|
r9591 | {{cell.input | highlight }} | ||
</div> | ||||
Matthias BUSSONNIER
|
r9590 | {%- endblock input %} | ||
Matthias BUSSONNIER
|
r9580 | |||
Matthias BUSSONNIER
|
r9591 | {% block markdowncell scoped %} | ||
Matthias BUSSONNIER
|
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 %} | ||||
Matthias BUSSONNIER
|
r9592 | {{ cell.source }} | ||
Matthias BUSSONNIER
|
r9580 | {% endblock rawcell %} | ||
{% block unknowncell scoped %} | ||||
unknown type {{cell.type}} | ||||
{% endblock unknowncell %} | ||||
Matthias BUSSONNIER
|
r9590 | |||
{% block pyout -%} | ||||
Matthias BUSSONNIER
|
r9591 | <div class="output_subarea output_pyout"> | ||
Matthias BUSSONNIER
|
r9599 | {% block data_priority scoped %}{{ super()}}{% endblock %} | ||
Matthias BUSSONNIER
|
r9590 | </div> | ||
{%- endblock pyout %} | ||||
Matthias BUSSONNIER
|
r9600 | {% block stream_stdout -%} | ||
Matthias BUSSONNIER
|
r9590 | <div class="output_subarea output_stream output_stdout"> | ||
Matthias BUSSONNIER
|
r9592 | <pre>{{output.text |ansi2html}}</pre> | ||
Matthias BUSSONNIER
|
r9590 | </div> | ||
Matthias BUSSONNIER
|
r9600 | {%- endblock stream_stdout %} | ||
{% block stream_stderr -%} | ||||
<div class="output_subarea output_stream output_stderr"> | ||||
<pre>{{output.text |ansi2html}}</pre> | ||||
</div> | ||||
{%- endblock stream_stderr %} | ||||
Matthias BUSSONNIER
|
r9592 | |||
Matthias BUSSONNIER
|
r9599 | {% block data_svg -%} | ||
Matthias BUSSONNIER
|
r9592 | {{output.svg}} | ||
Matthias BUSSONNIER
|
r9599 | {%- endblock data_svg %} | ||
Matthias BUSSONNIER
|
r9592 | |||
Matthias BUSSONNIER
|
r9600 | {% block data_html -%} | ||
<div class="output_html rendered_html"> | ||||
Matthias BUSSONNIER
|
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 %} | ||||
Matthias BUSSONNIER
|
r9592 | {% block pyerr -%} | ||
<div class="output_subarea output_pyerr"> | ||||
<pre>{{super()}}</pre> | ||||
</div> | ||||
{%- endblock pyerr %} | ||||
{%- block traceback_line %} | ||||
{{line| ansi2html}} | ||||
{%- endblock traceback_line %} | ||||
Matthias BUSSONNIER
|
r9599 | |||
{%- block data_text %} | ||||
<pre>{{output.text | ansi2html}}</pre> | ||||
{%- endblock -%} | ||||
Matthias BUSSONNIER
|
r9600 | |||
{%- block display_data scoped -%} | ||||
<div class="output_subarea output_display_data"> | ||||
{{super()}} | ||||
</div> | ||||
{%- endblock display_data -%} | ||||