ensojs 1.0.0-rc.6 → 1.0.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Enso
|
|
2
2
|
|
|
3
|
-
<img src="
|
|
3
|
+
<img src="public/icon.svg" width="100">
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|

|
|
@@ -50,7 +50,7 @@ class MyComponent extends WebComponent {
|
|
|
50
50
|
}
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
As real-world components grew, new sources of repetitive boilerplate appeared. For instance, querying the DOM for child elements. To solve this, a quick and simple processing step was added to the template parsing, to extract `#ref="myRef"` attributes, and insert them as fields on the component, for
|
|
53
|
+
As real-world components grew, new sources of repetitive boilerplate appeared. For instance, querying the DOM for child elements. To solve this, a quick and simple processing step was added to the template parsing, to extract `#ref="myRef"` attributes, and insert them as fields on the component, for simple access via the class: `this.myRef`. But it soon became apparent that there was still a great deal of boilerplate, attaching events and the `@<event>=""` attribute evolved to replace calls to `this.myRef.addEventListener(...)`. As more features were added, Enso started to form.
|
|
54
54
|
|
|
55
55
|
From:
|
|
56
56
|
|
|
@@ -87,7 +87,7 @@ Or via CDN:
|
|
|
87
87
|
|
|
88
88
|
A simple reactive counter component:
|
|
89
89
|
|
|
90
|
-

|
|
91
91
|
|
|
92
92
|
```javascript
|
|
93
93
|
import Enso, { css, html, attr } from 'ensojs';
|