cdom 0.0.1 → 0.0.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 +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,9 +22,9 @@ cDOM is a reactive framework that lets you build dynamic UIs using declarative o
|
|
|
22
22
|
|
|
23
23
|
```html
|
|
24
24
|
<!-- Optional: Math expression parser -->
|
|
25
|
-
<script src="https://
|
|
25
|
+
<script src="https://cdn.jsdelivr.net/npm/expr-eval/dist/bundle.min.js"></script>
|
|
26
26
|
<!-- cDOM library -->
|
|
27
|
-
<script src="https://
|
|
27
|
+
<script src="https://cdn.jsdelivr.net/npm/cdom/index.min.js"></script>
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
**Note:** `expr-eval` is optional. cDOM will function without it, but support for complex math expressions and reactive logic within `_()` and `set()` helper calls will be unavailable.
|
|
@@ -34,7 +34,7 @@ cDOM is a reactive framework that lets you build dynamic UIs using declarative o
|
|
|
34
34
|
Download `cdom.js` and include it in your project:
|
|
35
35
|
|
|
36
36
|
```html
|
|
37
|
-
<script src="https://
|
|
37
|
+
<script src="https://cdn.jsdelivr.net/npm/expr-eval/dist/bundle.min.js"></script>
|
|
38
38
|
<script src="path/to/cdom.js"></script>
|
|
39
39
|
```
|
|
40
40
|
|
|
@@ -44,8 +44,8 @@ Download `cdom.js` and include it in your project:
|
|
|
44
44
|
|
|
45
45
|
```html
|
|
46
46
|
<html>
|
|
47
|
-
<script src="https://
|
|
48
|
-
<script src="
|
|
47
|
+
<script src="https://cdn.jsdelivr.net/npm/expr-eval/dist/bundle.min.js"></script>
|
|
48
|
+
<script src="https://cdn.jsdelivr.net/npm/cdom/index.min.js"></script>
|
|
49
49
|
|
|
50
50
|
<body>
|
|
51
51
|
<script>
|
|
@@ -76,8 +76,8 @@ cDOM will replace the script is runs in if an emty options object is provided, j
|
|
|
76
76
|
|
|
77
77
|
```html
|
|
78
78
|
<html>
|
|
79
|
-
<script src="https://
|
|
80
|
-
<script src="https://
|
|
79
|
+
<script src="https://cdn.jsdelivr.net/npm/expr-eval/dist/bundle.min.js"></script>
|
|
80
|
+
<script src="https://cdn.jsdelivr.net/npm/cdom/index.min.js"></script>
|
|
81
81
|
|
|
82
82
|
<body>
|
|
83
83
|
<script>
|
|
@@ -425,8 +425,8 @@ When `_()` is used a string in a cDOM it establishes reatcive context and calls
|
|
|
425
425
|
|
|
426
426
|
```html
|
|
427
427
|
<html>
|
|
428
|
-
<script src="https://
|
|
429
|
-
<script src="
|
|
428
|
+
<script src="https://cdn.jsdelivr.net/npm/expr-eval/dist/bundle.min.js"></script>
|
|
429
|
+
<script src="https://cdn.jsdelivr.net/npm/cdom/index.min.js"></script>
|
|
430
430
|
|
|
431
431
|
<body>
|
|
432
432
|
<script>
|