basichtml.tpl
96 lines
| 1.9 KiB
| application/vnd.groove-tool-template
|
SmartyLexer
/ templates / basichtml.tpl
Matthias BUSSONNIER
|
r9015 | {%- extends 'null.tpl' -%} | ||
Matthias BUSSONNIER
|
r8997 | |||
Matthias BUSSONNIER
|
r9015 | {% block codecell %} | ||
Matthias BUSSONNIER
|
r8997 | <div class="cell border-box-sizing code_cell vbox"> | ||
Matthias BUSSONNIER
|
r9016 | {{ super() }}</div> | ||
{%- endblock codecell %} | ||||
Matthias BUSSONNIER
|
r9015 | |||
{% block input_group -%} | ||||
<div class="input hbox"> | ||||
{{super()}} | ||||
Matthias BUSSONNIER
|
r8997 | </div> | ||
Matthias BUSSONNIER
|
r9015 | {% endblock input_group %} | ||
{% block output_group -%} | ||||
Matthias BUSSONNIER
|
r8997 | <div class="vbox output_wrapper"> | ||
<div class="output vbox"> | ||||
<div class="hbox output_area"> | ||||
Matthias BUSSONNIER
|
r9015 | {{ super() }} | ||
Matthias BUSSONNIER
|
r8997 | </div> | ||
</div> | ||||
</div> | ||||
Matthias BUSSONNIER
|
r9015 | {% endblock output_group %} | ||
{% block in_prompt -%} | ||||
<div class="prompt input_prompt">In [{{cell.prompt_number}}]:</div> | ||||
{%- endblock in_prompt %} | ||||
{% block output_prompt -%} | ||||
Matthias BUSSONNIER
|
r9016 | <div class="prompt output_prompt"> | ||
Matthias BUSSONNIER
|
r9039 | {%- if cell.haspyout -%} | ||
Matthias BUSSONNIER
|
r9016 | Out[{{cell.prompt_number}}]: | ||
{%- endif -%} | ||||
</div> | ||||
Matthias BUSSONNIER
|
r9015 | {% endblock output_prompt %} | ||
{% block input %} | ||||
<div class="input_area box-flex1"> | ||||
Matthias BUSSONNIER
|
r9016 | {{cell.input | highlight }} | ||
</div> | ||||
Matthias BUSSONNIER
|
r9015 | {%- endblock input %} | ||
Matthias BUSSONNIER
|
r8997 | |||
Matthias BUSSONNIER
|
r9016 | {% block markdowncell scoped %} | ||
Matthias BUSSONNIER
|
r8997 | <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
|
r9039 | {{ cell.source }} | ||
Matthias BUSSONNIER
|
r8997 | {% endblock rawcell %} | ||
{% block unknowncell scoped %} | ||||
unknown type {{cell.type}} | ||||
{% endblock unknowncell %} | ||||
Matthias BUSSONNIER
|
r9015 | |||
{% block pyout -%} | ||||
Matthias BUSSONNIER
|
r9016 | <div class="output_subarea output_pyout"> | ||
Matthias BUSSONNIER
|
r9039 | <pre>{{output.text | ansi2html}}</pre> | ||
Matthias BUSSONNIER
|
r9015 | </div> | ||
{%- endblock pyout %} | ||||
{% block stream -%} | ||||
<div class="output_subarea output_stream output_stdout"> | ||||
Matthias BUSSONNIER
|
r9039 | <pre>{{output.text |ansi2html}}</pre> | ||
Matthias BUSSONNIER
|
r9015 | </div> | ||
{%- endblock stream %} | ||||
Matthias BUSSONNIER
|
r9039 | |||
{% block display_data -%} | ||||
<div class="output_subarea output_display_data"> | ||||
{{output.svg}} | ||||
</div> | ||||
{%- endblock display_data %} | ||||
{% block pyerr -%} | ||||
<div class="output_subarea output_pyerr"> | ||||
<pre>{{super()}}</pre> | ||||
</div> | ||||
{%- endblock pyerr %} | ||||
{%- block traceback_line %} | ||||
{{line| ansi2html}} | ||||
{%- endblock traceback_line %} | ||||