marko 5.31.6 → 5.31.8
Sign up to get free protection for your applications and to get access to all the features.
- package/docs/concise.md +22 -0
- package/package.json +2 -2
package/docs/concise.md
CHANGED
@@ -38,6 +38,28 @@ _output.html_
|
|
38
38
|
|
39
39
|
> **ProTip:** These shorthand attributes are available within the HTML syntax as well
|
40
40
|
|
41
|
+
## Attributes on multiple lines
|
42
|
+
|
43
|
+
If a component has lots of attributes, you can spread them across multiple lines by surrounding them with square brackets
|
44
|
+
|
45
|
+
_input.marko_
|
46
|
+
|
47
|
+
```marko
|
48
|
+
div [
|
49
|
+
id="hello"
|
50
|
+
class=["class1", "class2", "class3"]
|
51
|
+
style={ border: "1px solid red" }
|
52
|
+
] -- hello
|
53
|
+
```
|
54
|
+
|
55
|
+
_output.html_
|
56
|
+
|
57
|
+
```html
|
58
|
+
<div id="hello" class="class1 class2 class3" style="border:1px solid red">
|
59
|
+
hello
|
60
|
+
</div>
|
61
|
+
```
|
62
|
+
|
41
63
|
## Text
|
42
64
|
|
43
65
|
Text in concise mode is denoted by two or more dashes (`--`).
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "marko",
|
3
|
-
"version": "5.31.
|
3
|
+
"version": "5.31.8",
|
4
4
|
"description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
|
5
5
|
"keywords": [
|
6
6
|
"front-end",
|
@@ -65,7 +65,7 @@
|
|
65
65
|
},
|
66
66
|
"dependencies": {
|
67
67
|
"@marko/compiler": "^5.33.1",
|
68
|
-
"@marko/translator-default": "^5.31.
|
68
|
+
"@marko/translator-default": "^5.31.2",
|
69
69
|
"app-module-path": "^2.2.0",
|
70
70
|
"argly": "^1.2.0",
|
71
71
|
"browser-refresh-client": "1.1.4",
|