Show More
@@ -135,6 +135,12 b' unknown type {{ cell.type }}' | |||
|
135 | 135 | </pre> |
|
136 | 136 | {%- endblock -%} |
|
137 | 137 | |
|
138 | {%- block data_javascript %} | |
|
139 | <script type="text/javascript"> | |
|
140 | {{ output.javascript }} | |
|
141 | </script> | |
|
142 | {%- endblock -%} | |
|
143 | ||
|
138 | 144 | {%- block display_data scoped -%} |
|
139 | 145 | <div class="box-flex1 output_subarea output_display_data"> |
|
140 | 146 | {{ super() }} |
@@ -30,10 +30,13 b'' | |||
|
30 | 30 | ((*- block data_text -*)) |
|
31 | 31 | ((*- endblock -*)) |
|
32 | 32 | ((*- endif -*)) |
|
33 | ||
|
34 | 33 | ((*- if type in ['latex']*)) |
|
35 | 34 | ((*- block data_latex -*)) |
|
36 | 35 | ((*- endblock -*)) |
|
37 | 36 | ((*- endif -*)) |
|
37 | ((*- if type in ['javascript']*)) | |
|
38 | ((*- block data_javascript -*)) | |
|
39 | ((*- endblock -*)) | |
|
40 | ((*- endif -*)) | |
|
38 | 41 | ((*- endfor -*)) |
|
39 | 42 | ((*- endblock data_priority -*)) |
@@ -1,10 +1,10 b'' | |||
|
1 | 1 | |
|
2 | 2 | |
|
3 | all: tex/null.tplx tex/display_priority.tplx | |
|
3 | all: ../latex/skeleton/null.tplx ../latex/skeleton/display_priority.tplx | |
|
4 | 4 | |
|
5 | 5 | # convert jinja syntax to tex |
|
6 | 6 | # cf http://flask.pocoo.org/snippets/55/ |
|
7 | tex/%.tplx: %.tpl | |
|
7 | ../latex/skeleton/%.tplx: %.tpl | |
|
8 | 8 | @echo 'generating tex equivalent of $^: $@' |
|
9 | 9 | @echo '((= autogenerated file do not edit =))' > $@ |
|
10 | 10 | @sed \ |
@@ -20,4 +20,4 b' tex/%.tplx: %.tpl' | |||
|
20 | 20 | |
|
21 | 21 | clean: |
|
22 | 22 | @echo "cleaning generated tplx files..." |
|
23 | @rm tex/* | |
|
23 | @rm ../latex/skeleton/* |
@@ -29,10 +29,13 b'' | |||
|
29 | 29 | {%- block data_text -%} |
|
30 | 30 | {%- endblock -%} |
|
31 | 31 | {%- endif -%} |
|
32 | ||
|
33 | 32 | {%- if type in ['latex']%} |
|
34 | 33 | {%- block data_latex -%} |
|
35 | 34 | {%- endblock -%} |
|
36 | 35 | {%- endif -%} |
|
36 | {%- if type in ['javascript']%} | |
|
37 | {%- block data_javascript -%} | |
|
38 | {%- endblock -%} | |
|
39 | {%- endif -%} | |
|
37 | 40 | {%- endfor -%} |
|
38 | 41 | {%- endblock data_priority -%} |
General Comments 0
You need to be logged in to leave comments.
Login now