Skip to content

Commit 69a16fe

Browse files
authored
Update README.md
1 parent 7a49357 commit 69a16fe

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,23 @@ import "@polymer/paper-button/paper-button.html";
213213
```
214214
>Please note that the @polymer packages are still in testing stage. And the polymer version is an older one.
215215
216+
### Assets
217+
218+
```html
219+
<img src="sample-image.png"> <!--Works!!-->
220+
<iron-image src="sample-image.png"><iron-image> <!--Works!!-->
221+
<any-element src="sample-image.png"><any-element> <!--Works!!-->
222+
<any-element src="[[image]]"><any-element> <!--Does not work!! if you want this to work use image = path/from/root/to/image.png -->
223+
<any-element src="{{image}}"><any-element> <!--Does not work!! if you want this to work use image = path/from/root/to/image.png -->
224+
```
225+
works inside html.
226+
227+
File types we supports https://github.com/meteorwebcomponents/synthesis/blob/master/packages/synthesis-file/plugin/synthesis-file.js#L19.
228+
229+
Feel free to add pr's if you want to supports more file types.
230+
231+
Relevant code https://github.com/meteorwebcomponents/synthesis/blob/master/packages/synthesis-compiler/synthesis-compiler.js#L166-L176 .
232+
216233
### Demo
217234

218235
#####Using Bower

0 commit comments

Comments
 (0)