##// END OF EJS Templates
handle unicode/str in pretty, str formatter...
handle unicode/str in pretty, str formatter by casting str to unicode on Python 2

File last commit:

r19918:b7ba30ad
r20486:fe14d514
Show More
display_priority.tpl
40 lines | 1.3 KiB | application/vnd.groove-tool-template | SmartyLexer
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- extends 'null.tpl' -%}
{#display data priority#}
{%- block data_priority scoped -%}
MinRK
move mime-bundle data to rich output.data...
r18589 {%- for type in output.data | filter_data_type -%}
MinRK
update nbconvert to nbformat 4
r18580 {%- if type == 'application/pdf' -%}
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- block data_pdf -%}
{%- endblock -%}
MinRK
update nbconvert to nbformat 4
r18580 {%- elif type == 'image/svg+xml' -%}
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- block data_svg -%}
{%- endblock -%}
MinRK
update nbconvert to nbformat 4
r18580 {%- elif type == 'image/png' -%}
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- block data_png -%}
{%- endblock -%}
MinRK
update nbconvert to nbformat 4
r18580 {%- elif type == 'text/html' -%}
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- block data_html -%}
{%- endblock -%}
Min RK
support markdown output in nbconvert
r19918 {%- elif type == 'text/markdown' -%}
{%- block data_markdown -%}
{%- endblock -%}
MinRK
update nbconvert to nbformat 4
r18580 {%- elif type == 'image/jpeg' -%}
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- block data_jpg -%}
{%- endblock -%}
MinRK
update nbconvert to nbformat 4
r18580 {%- elif type == 'text/plain' -%}
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- block data_text -%}
{%- endblock -%}
MinRK
update nbconvert to nbformat 4
r18580 {%- elif type == 'text/latex' -%}
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- block data_latex -%}
{%- endblock -%}
MinRK
update nbconvert to nbformat 4
r18580 {%- elif type == 'application/javascript' -%}
MinRK
add missing data_javascript...
r12446 {%- block data_javascript -%}
{%- endblock -%}
MinRK
update nbconvert to nbformat 4
r18580 {%- else -%}
{%- block data_other -%}
{%- endblock -%}
MinRK
add missing data_javascript...
r12446 {%- endif -%}
Matthias BUSSONNIER
try to play with data display priority
r9599 {%- endfor -%}
{%- endblock data_priority -%}