Skip to content

Commit 09fd305

Browse files
committed
Merge branch 'master' of github.com:meteorwebcomponents/synthesis
2 parents 2032c29 + 5747bba commit 09fd305

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ Remove `blaze-html-templates` (or remove the html compiler you are using).
3434
3535
Install 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

3942
synthesis 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

0 commit comments

Comments
 (0)