##// END OF EJS Templates
support extracted output in HTML template...
MinRK -
Show More
@@ -113,7 +113,11 b' unknown type {{ cell.type }}'
113 {%- endblock stream_stderr %}
113 {%- endblock stream_stderr %}
114
114
115 {% block data_svg -%}
115 {% block data_svg -%}
116 {%- if output.svg_filename %}
117 <img src="{{output.svg_filename | posix_path}}"
118 {%- else %}
116 {{ output.svg }}
119 {{ output.svg }}
120 {%- endif %}
117 {%- endblock data_svg %}
121 {%- endblock data_svg %}
118
122
119 {% block data_html -%}
123 {% block data_html -%}
@@ -123,7 +127,11 b' unknown type {{ cell.type }}'
123 {%- endblock data_html %}
127 {%- endblock data_html %}
124
128
125 {% block data_png %}
129 {% block data_png %}
130 {%- if output.png_filename %}
131 <img src="{{output.png_filename | posix_path}}"
132 {%- else %}
126 <img src="data:image/png;base64,{{ output.png }}"
133 <img src="data:image/png;base64,{{ output.png }}"
134 {%- endif %}
127 {%- if 'metadata' in output and 'width' in output.metadata.get('png', {}) %}
135 {%- if 'metadata' in output and 'width' in output.metadata.get('png', {}) %}
128 width={{output.metadata['png']['width']}}
136 width={{output.metadata['png']['width']}}
129 {%- endif %}
137 {%- endif %}
@@ -134,7 +142,11 b" height={{output.metadata['png']['height']}}"
134 {%- endblock data_png %}
142 {%- endblock data_png %}
135
143
136 {% block data_jpg %}
144 {% block data_jpg %}
145 {%- if output.jpeg_filename %}
146 <img src="{{output.jpeg_filename | posix_path}}"
147 {%- else %}
137 <img src="data:image/jpeg;base64,{{ output.jpeg }}"
148 <img src="data:image/jpeg;base64,{{ output.jpeg }}"
149 {%- endif %}
138 {%- if 'metadata' in output and 'width' in output.metadata.get('jpeg', {}) %}
150 {%- if 'metadata' in output and 'width' in output.metadata.get('jpeg', {}) %}
139 width={{output.metadata['jpeg']['width']}}
151 width={{output.metadata['jpeg']['width']}}
140 {%- endif %}
152 {%- endif %}
General Comments 0
You need to be logged in to leave comments. Login now