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