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 +1 -1
- package/docs/marko-vs-react.md +6 -11
- package/package.json +4 -4
package/docs/events.md
CHANGED
package/docs/marko-vs-react.md
CHANGED
@@ -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
|
-
```
|
740
|
+
```js
|
741
741
|
var marko_template = require("marko/html").t(__filename),
|
742
|
-
|
743
|
-
|
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
|
-
```
|
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.
|
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.
|
8
|
-
"@marko/translator-default": "^5.18.
|
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": "
|
75
|
+
"gitHead": "9d5254c0a1739b1607c3c0edbe7c9d2b00e70838"
|
76
76
|
}
|