marko 5.31.7 → 5.31.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/docs/concise.md +22 -0
  2. package/package.json +1 -1
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.7",
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",