Skip to content

Commit 669a689

Browse files
committed
Merge branch 'master' of github.com:meteorwebcomponents/synthesis
2 parents 2838ebf + 3bab705 commit 669a689

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,16 @@ import "@polymer/paper-button/paper-button.html";
219219
### Assets
220220

221221
```html
222+
<!-- imports/ui/path/to/element.html -->
222223
<img src="sample-image.png"> <!--Works!!-->
223224
<iron-image src="sample-image.png"><iron-image> <!--Works!!-->
224-
<any-element src="sample-image.png"><any-element> <!--Works!!-->
225+
<any-element src="sample-image.png"><any-element> <!--Works!! src = imports/ui/path/to/sample-image.png -->
226+
<any-element src="../sample-image.png"><any-element> <!--Works!! src = imports/ui/path/sample-image.png-->
225227
<any-element src="[[image]]"><any-element> <!--Does not work!! if you want this to work use image = path/from/root/to/image.png -->
226228
<any-element src="{{image}}"><any-element> <!--Does not work!! if you want this to work use image = path/from/root/to/image.png -->
229+
230+
<!-- files in public/ folder -->
231+
<any-element src="/sample-image.png"><any-element> <!--Works!! src = /sample-image.png -->
227232
```
228233
works inside html.
229234

packages/synthesis/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,17 @@ import "@polymer/paper-button/paper-button.html";
219219
### Assets
220220

221221
```html
222+
<!-- imports/ui/path/to/element.html -->
222223
<img src="sample-image.png"> <!--Works!!-->
223224
<iron-image src="sample-image.png"><iron-image> <!--Works!!-->
224-
<any-element src="sample-image.png"><any-element> <!--Works!!-->
225+
<any-element src="sample-image.png"><any-element> <!--Works!! src = imports/ui/path/to/sample-image.png -->
226+
<any-element src="../sample-image.png"><any-element> <!--Works!! src = imports/ui/path/sample-image.png-->
225227
<any-element src="[[image]]"><any-element> <!--Does not work!! if you want this to work use image = path/from/root/to/image.png -->
226228
<any-element src="{{image}}"><any-element> <!--Does not work!! if you want this to work use image = path/from/root/to/image.png -->
227-
```
229+
230+
<!-- files in public/ folder -->
231+
<any-element src="/sample-image.png"><any-element> <!--Works!! src = /sample-image.png -->
232+
```
228233
works inside html.
229234

230235
File types we supports https://github.com/meteorwebcomponents/synthesis/blob/master/packages/synthesis-file/plugin/synthesis-file.js#L19.

0 commit comments

Comments
 (0)