File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ Remove `blaze-html-templates` (or remove the html compiler you are using).
3434
3535Install synthesis
3636
37- ` meteor add mwc:synthesis `
37+ ``` sh
38+ meteor add mwc:synthesis # compiles html files
39+ meteor add mwc:synthesis-file # compiles asset files for <img src="image.png"> to work.
40+ ```
3841
3942synthesis is a meteor 1.3+ package. for 1.2 support use [ mwc: compiler ] ( https://github.com/meteorwebcomponents/compiler )
4043
@@ -213,6 +216,23 @@ import "@polymer/paper-button/paper-button.html";
213216```
214217> Please note that the @polymer packages are still in testing stage. And the polymer version is an older one.
215218
219+ ### Assets
220+
221+ ``` html
222+ <img src =" sample-image.png" > <!-- Works!!-->
223+ <iron-image src =" sample-image.png" ><iron-image > <!-- Works!!-->
224+ <any-element src =" sample-image.png" ><any-element > <!-- Works!!-->
225+ <any-element src =" [[image]]" ><any-element > <!-- Does not work!! if you want this to work use image = path/from/root/to/image.png -->
226+ <any-element src =" {{image}}" ><any-element > <!-- Does not work!! if you want this to work use image = path/from/root/to/image.png -->
227+ ```
228+ works inside html.
229+
230+ File types we supports https://github.com/meteorwebcomponents/synthesis/blob/master/packages/synthesis-file/plugin/synthesis-file.js#L19 .
231+
232+ Feel free to add pr's if you want to supports more file types.
233+
234+ Relevant code https://github.com/meteorwebcomponents/synthesis/blob/master/packages/synthesis-compiler/synthesis-compiler.js#L166-L176 .
235+
216236### Demo
217237
218238#####Using Bower
You can’t perform that action at this time.
0 commit comments