shablon 0.0.1-rc.1 → 0.0.1-rc.2
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 +4 -6
- package/package.json +1 -1
- package/src/state.js +1 -1
package/README.md
CHANGED
|
@@ -112,10 +112,8 @@ You can find the bundle file at [`dist/shablon.iife.js`](https://github.com/gani
|
|
|
112
112
|
|
|
113
113
|
#### ES module (browsers and npm)
|
|
114
114
|
|
|
115
|
-
Alternatively, you can load the package as ES module by using the [`dist/shablon.es.js`](https://github.com/ganigeorgiev/shablon/blob/master/dist/shablon.es.js) file
|
|
116
|
-
|
|
117
|
-
<!-- Alternatively, you can load the package as ES module either by using the [`dist/shablon.es.js`](https://github.com/ganigeorgiev/shablon/blob/master/dist/shablon.es.js) file or
|
|
118
|
-
importing it from [npm](https://www.npmjs.com/package/shablon). -->
|
|
115
|
+
Alternatively, you can load the package as ES module either by using the [`dist/shablon.es.js`](https://github.com/ganigeorgiev/shablon/blob/master/dist/shablon.es.js) file or
|
|
116
|
+
importing it from [npm](https://www.npmjs.com/package/shablon).
|
|
119
117
|
|
|
120
118
|
- browsers:
|
|
121
119
|
```html
|
|
@@ -127,7 +125,7 @@ importing it from [npm](https://www.npmjs.com/package/shablon). -->
|
|
|
127
125
|
...
|
|
128
126
|
</script>
|
|
129
127
|
```
|
|
130
|
-
|
|
128
|
+
|
|
131
129
|
- npm (`npm -i shablon`):
|
|
132
130
|
```js
|
|
133
131
|
import { t, store, watch, router } from "shablon"
|
|
@@ -135,7 +133,7 @@ importing it from [npm](https://www.npmjs.com/package/shablon). -->
|
|
|
135
133
|
const data = store({ count: 0 })
|
|
136
134
|
...
|
|
137
135
|
```
|
|
138
|
-
|
|
136
|
+
|
|
139
137
|
## API
|
|
140
138
|
<details>
|
|
141
139
|
<summary><strong id="api.store">store(obj)</strong></summary>
|
package/package.json
CHANGED