@itrocks/template 0.0.1 → 0.0.3
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 +17 -2
package/README.md
CHANGED
@@ -143,7 +143,7 @@ Example:
|
|
143
143
|
<span data-property="{property.name}">{property.value}</span>
|
144
144
|
```
|
145
145
|
Given data:
|
146
|
-
```
|
146
|
+
```ts
|
147
147
|
{ link: '/exit/the/matrix', property: { name: 'voyager', value: 'Neo' } }
|
148
148
|
```
|
149
149
|
Results in:
|
@@ -225,11 +225,11 @@ Result:
|
|
225
225
|
Prefix the expression with `?` to remove the [attribute](https://developer.mozilla.org/docs/Web/HTML/Attributes)
|
226
226
|
if the value is [falsy](https://developer.mozilla.org/docs/Glossary/Falsy):
|
227
227
|
```html
|
228
|
-
<span
|
228
|
+
<span style="color:{?color};">{name}</span>
|
229
229
|
```
|
230
230
|
With data `{ color: 'red', name: 'Bad cop' }`:
|
231
231
|
```html
|
232
|
-
<span
|
232
|
+
<span style="color:red;">Bad cop</span>
|
233
233
|
```
|
234
234
|
With data `{ name: 'Good cop' }` (no color):
|
235
235
|
```html
|
package/package.json
CHANGED
@@ -23,7 +23,22 @@
|
|
23
23
|
"template.js"
|
24
24
|
],
|
25
25
|
"keywords": [
|
26
|
-
"
|
26
|
+
"browser",
|
27
|
+
"dynamic",
|
28
|
+
"engine",
|
29
|
+
"html",
|
30
|
+
"fast",
|
31
|
+
"i18n",
|
32
|
+
"internationalization",
|
33
|
+
"it.rocks",
|
34
|
+
"lightweight",
|
35
|
+
"no-escape",
|
36
|
+
"preview",
|
37
|
+
"standards",
|
38
|
+
"template",
|
39
|
+
"valid",
|
40
|
+
"validation",
|
41
|
+
"W3C"
|
27
42
|
],
|
28
43
|
"license": "LGPL-3.0-or-later",
|
29
44
|
"main": "./template.js",
|
@@ -33,5 +48,5 @@
|
|
33
48
|
"build": "tsc -p tsconfig.json",
|
34
49
|
"test": "jest"
|
35
50
|
},
|
36
|
-
"version": "0.0.
|
51
|
+
"version": "0.0.3"
|
37
52
|
}
|