marko 5.18.0 → 5.18.1

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/docs/events.md CHANGED
@@ -124,7 +124,7 @@ The above code listens to native `change` events from the `<input>` element, and
124
124
 
125
125
  ```marko
126
126
  <form>
127
- <email-input name="email" on-email-change(...)/>
127
+ <email-input name="email" on-email-change("...")/>
128
128
  </form>
129
129
  ```
130
130
 
@@ -737,28 +737,23 @@ the server or in the browser. For example, given the following template:
737
737
 
738
738
  #### Compiled for the server:
739
739
 
740
- ```marko
740
+ ```js
741
741
  var marko_template = require("marko/html").t(__filename),
742
- marko_helpers = require("marko/runtime/html/helpers"),
743
- marko_escapeXml = marko_helpers.x;
742
+ marko_helpers = require("marko/runtime/html/helpers"),
743
+ marko_escapeXml = marko_helpers.x;
744
744
 
745
745
  function render(input, out) {
746
- out.w("<div>Hello " +
747
- marko_escapeXml(input.name) +
748
- "!</div>");
746
+ out.w("<div>Hello " + marko_escapeXml(input.name) + "!</div>");
749
747
  }
750
748
  ```
751
749
 
752
750
  #### Compiled for the browser:
753
751
 
754
- ```marko
752
+ ```js
755
753
  var marko_template = require("marko/vdom").t(__filename);
756
754
 
757
755
  function render(input, out) {
758
- out.e("DIV", null, 3)
759
- .t("Hello ")
760
- .t(input.name)
761
- .t("!");
756
+ out.e("DIV", null, 3).t("Hello ").t(input.name).t("!");
762
757
  }
763
758
  ```
764
759
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.18.0",
3
+ "version": "5.18.1",
4
4
  "license": "MIT",
5
5
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
6
6
  "dependencies": {
7
- "@marko/compiler": "^5.18.0",
8
- "@marko/translator-default": "^5.18.0",
7
+ "@marko/compiler": "^5.18.1",
8
+ "@marko/translator-default": "^5.18.1",
9
9
  "app-module-path": "^2.2.0",
10
10
  "argly": "^1.2.0",
11
11
  "browser-refresh-client": "1.1.4",
@@ -72,5 +72,5 @@
72
72
  "index.js",
73
73
  "node-require.js"
74
74
  ],
75
- "gitHead": "daa7b0a1769366a54b6882e176ef6b151628bf57"
75
+ "gitHead": "9d5254c0a1739b1607c3c0edbe7c9d2b00e70838"
76
76
  }