diff --git a/IPython/nbconvert/templates/html_basic.tpl b/IPython/nbconvert/templates/html_basic.tpl index 0de72d6..defea17 100644 --- a/IPython/nbconvert/templates/html_basic.tpl +++ b/IPython/nbconvert/templates/html_basic.tpl @@ -135,6 +135,12 @@ unknown type {{ cell.type }} {%- endblock -%} +{%- block data_javascript %} + +{%- endblock -%} + {%- block display_data scoped -%}
{{ super() }} diff --git a/IPython/nbconvert/templates/latex/skeleton/display_priority.tplx b/IPython/nbconvert/templates/latex/skeleton/display_priority.tplx index d4a88ee..f3665b3 100644 --- a/IPython/nbconvert/templates/latex/skeleton/display_priority.tplx +++ b/IPython/nbconvert/templates/latex/skeleton/display_priority.tplx @@ -30,10 +30,13 @@ ((*- block data_text -*)) ((*- endblock -*)) ((*- endif -*)) - ((*- if type in ['latex']*)) ((*- block data_latex -*)) ((*- endblock -*)) ((*- endif -*)) + ((*- if type in ['javascript']*)) + ((*- block data_javascript -*)) + ((*- endblock -*)) + ((*- endif -*)) ((*- endfor -*)) ((*- endblock data_priority -*)) diff --git a/IPython/nbconvert/templates/skeleton/Makefile b/IPython/nbconvert/templates/skeleton/Makefile index bb9b933..ad77bce 100644 --- a/IPython/nbconvert/templates/skeleton/Makefile +++ b/IPython/nbconvert/templates/skeleton/Makefile @@ -1,10 +1,10 @@ -all: tex/null.tplx tex/display_priority.tplx +all: ../latex/skeleton/null.tplx ../latex/skeleton/display_priority.tplx # convert jinja syntax to tex # cf http://flask.pocoo.org/snippets/55/ -tex/%.tplx: %.tpl +../latex/skeleton/%.tplx: %.tpl @echo 'generating tex equivalent of $^: $@' @echo '((= autogenerated file do not edit =))' > $@ @sed \ @@ -20,4 +20,4 @@ tex/%.tplx: %.tpl clean: @echo "cleaning generated tplx files..." - @rm tex/* + @rm ../latex/skeleton/* diff --git a/IPython/nbconvert/templates/skeleton/display_priority.tpl b/IPython/nbconvert/templates/skeleton/display_priority.tpl index f237e55..5299d48 100644 --- a/IPython/nbconvert/templates/skeleton/display_priority.tpl +++ b/IPython/nbconvert/templates/skeleton/display_priority.tpl @@ -29,10 +29,13 @@ {%- block data_text -%} {%- endblock -%} {%- endif -%} - {%- if type in ['latex']%} {%- block data_latex -%} {%- endblock -%} {%- endif -%} + {%- if type in ['javascript']%} + {%- block data_javascript -%} + {%- endblock -%} + {%- endif -%} {%- endfor -%} {%- endblock data_priority -%}