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