##// END OF EJS Templates
Merge pull request #3758 from jdfreder/filter_refact...
Merge pull request #3758 from jdfreder/filter_refact nbconvert: Filter names cleanup highlight -> highlight2foo markdown -> markdown2html python_comment -> comment_lines rm_ansi -> strip_ansi rm_dollars -> strip_dollars rm_fake -> strip_files_prefix html_text -> html2text rm_math_space -> strip_math_space wrap -> wrap_text

File last commit:

r11685:1f458eea
r11689:75f7bb9c merge
Show More
basichtml.tpl
138 lines | 3.0 KiB | application/vnd.groove-tool-template | SmartyLexer
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- extends 'display_priority.tpl' -%}
Matthias BUSSONNIER
null template
r9580
Matthias BUSSONNIER
working on html
r9590 {% block codecell %}
Matthias BUSSONNIER
null template
r9580 <div class="cell border-box-sizing code_cell vbox">
Matthias BUSSONNIER
some other fixes
r9591 {{ super() }}</div>
{%- endblock codecell %}
Matthias BUSSONNIER
working on html
r9590
{% block input_group -%}
<div class="input hbox">
{{super()}}
Matthias BUSSONNIER
null template
r9580 </div>
Matthias BUSSONNIER
working on html
r9590 {% endblock input_group %}
MinRK
fix div hierarchy for outputs...
r10041 {% block output_group %}
Matthias BUSSONNIER
fix prompt/output hbox/vbox
r9823 <div class="vbox output_wrapper">
MinRK
fix div hierarchy for outputs...
r10041 <div class="output vbox">
Matthias BUSSONNIER
fix prompt/output hbox/vbox
r9823 {{ super() }}
Matthias BUSSONNIER
null template
r9580 </div>
damianavila
Addind a closing div.
r9707 </div>
Matthias BUSSONNIER
working on html
r9590 {% endblock output_group %}
{% block in_prompt -%}
<div class="prompt input_prompt">In&nbsp;[{{cell.prompt_number}}]:</div>
{%- endblock in_prompt %}
MinRK
fix div hierarchy for outputs...
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
working on html
r9590 {% endblock output_prompt %}
{% block input %}
<div class="input_area box-flex1">
Jonathan Frederic
Filter names cleanup
r11685 {{cell.input | highlight2html }}
Matthias BUSSONNIER
some other fixes
r9591 </div>
Matthias BUSSONNIER
working on html
r9590 {%- endblock input %}
MinRK
fix div hierarchy for outputs...
r10041 {% block output %}
<div class="hbox output_area">
{%- if output.output_type == 'pyout' -%}
<div class="prompt output_prompt">
Out[{{cell.prompt_number}}]:
{%- else -%}
<div class="prompt">
{%- endif -%}
</div>
{{ super() }}
</div>
{% endblock output %}
Matthias BUSSONNIER
null template
r9580
Matthias BUSSONNIER
some other fixes
r9591 {% block markdowncell scoped %}
Matthias BUSSONNIER
null template
r9580 <div class="text_cell_render border-box-sizing rendered_html">
Jonathan Frederic
Filter names cleanup
r11685 {{ cell.source | strip_math_space | markdown2html | strip_files_prefix}}
Matthias BUSSONNIER
null template
r9580 </div>
{%- endblock markdowncell %}
{% block headingcell scoped %}
<div class="text_cell_render border-box-sizing rendered_html">
Jonathan Frederic
Filter names cleanup
r11685 {{("#" * cell.level + cell.source) | replace('\n', ' ') | strip_math_space | markdown2html | strip_files_prefix | add_anchor }}
Matthias BUSSONNIER
null template
r9580 </div>
{% endblock headingcell %}
{% block rawcell scoped %}
Matthias BUSSONNIER
svgoutput
r9592 {{ cell.source }}
Matthias BUSSONNIER
null template
r9580 {% endblock rawcell %}
{% block unknowncell scoped %}
unknown type {{cell.type}}
{% endblock unknowncell %}
Matthias BUSSONNIER
working on html
r9590
{% block pyout -%}
Matthias BUSSONNIER
fix fileext and html multidisplay
r9637 <div class="box-flex1 output_subarea output_pyout">
Matthias BUSSONNIER
try to play with data display priority
r9599 {% block data_priority scoped %}{{ super()}}{% endblock %}
Matthias BUSSONNIER
working on html
r9590 </div>
{%- endblock pyout %}
Matthias BUSSONNIER
fix some stream/pyout/pyerr
r9600 {% block stream_stdout -%}
Matthias BUSSONNIER
fix fileext and html multidisplay
r9637 <div class="box-flex1 output_subarea output_stream output_stdout">
Matthias BUSSONNIER
svgoutput
r9592 <pre>{{output.text |ansi2html}}</pre>
Matthias BUSSONNIER
working on html
r9590 </div>
Matthias BUSSONNIER
fix some stream/pyout/pyerr
r9600 {%- endblock stream_stdout %}
{% block stream_stderr -%}
Matthias BUSSONNIER
fix fileext and html multidisplay
r9637 <div class="box-flex1 output_subarea output_stream output_stderr">
Matthias BUSSONNIER
fix some stream/pyout/pyerr
r9600 <pre>{{output.text |ansi2html}}</pre>
</div>
{%- endblock stream_stderr %}
Matthias BUSSONNIER
svgoutput
r9592
Matthias BUSSONNIER
try to play with data display priority
r9599 {% block data_svg -%}
Matthias BUSSONNIER
svgoutput
r9592 {{output.svg}}
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- endblock data_svg %}
Matthias BUSSONNIER
svgoutput
r9592
Matthias BUSSONNIER
fix some stream/pyout/pyerr
r9600 {% block data_html -%}
<div class="output_html rendered_html">
Matthias BUSSONNIER
try to play with data display priority
r9599 {{output.html}}
</div>
{%- endblock data_html %}
{% block data_png %}
Matthias BUSSONNIER
img tag has no end tag
r10155 <img src="data:image/png;base64,{{output.png}}">
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- endblock data_png %}
{% block data_jpg %}
Matthias BUSSONNIER
img tag has no end tag
r10155 <img src="data:image/jpeg;base64,{{output.jpeg}}">
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- endblock data_jpg %}
{% block data_latex %}
{{output.latex}}
{%- endblock data_latex %}
Matthias BUSSONNIER
svgoutput
r9592 {% block pyerr -%}
Matthias BUSSONNIER
fix fileext and html multidisplay
r9637 <div class="box-flex1 output_subarea output_pyerr">
Matthias BUSSONNIER
svgoutput
r9592 <pre>{{super()}}</pre>
</div>
{%- endblock pyerr %}
{%- block traceback_line %}
{{line| ansi2html}}
{%- endblock traceback_line %}
Matthias BUSSONNIER
try to play with data display priority
r9599
{%- block data_text %}
damianavila
New commit to clean the PR.
r9703 <pre>{{output.text | ansi2html}}</pre>
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- endblock -%}
Matthias BUSSONNIER
fix some stream/pyout/pyerr
r9600
{%- block display_data scoped -%}
Matthias BUSSONNIER
fix fileext and html multidisplay
r9637 <div class="box-flex1 output_subarea output_display_data">
Matthias BUSSONNIER
fix some stream/pyout/pyerr
r9600 {{super()}}
</div>
Matthias BUSSONNIER
fix some relative path issues
r9819 {%- endblock display_data -%}