-
Notifications
You must be signed in to change notification settings - Fork 641
/
expected.js
37 lines (30 loc) · 1.3 KB
/
expected.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_componentType = "/marko-test$1.0.0/components-compilation/fixtures-html-deprecated/component-include-attr/index",
marko_component = require("./"),
legacy_helpers = require("marko/src/runtime/components/legacy/helpers"),
marko_rendererLegacy = legacy_helpers.r,
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_dynamicTag = marko_helpers.d,
marko_escapeXml = marko_helpers.x,
marko_attr = marko_helpers.a;
function render(input, out, __component, widget, component) {
var data = input;
out.w("<div data-widget=\"/marko-test$1.0.0/components-compilation/fixtures-html-deprecated/component-include-attr/index\"" +
marko_attr("id", __component.elId()) +
"><h1>Header</h1><div>");
if ((typeof input.renderBody) === "function") {
marko_dynamicTag(out, input, null, null, null, null, __component, "2");
} else {
out.w(marko_escapeXml(input.renderBody));
}
out.w("</div></div>");
}
marko_template._ = marko_rendererLegacy(render, {
___type: marko_componentType
}, marko_component);
marko_template.meta = {
legacy: true,
id: "/marko-test$1.0.0/components-compilation/fixtures-html-deprecated/component-include-attr/index",
component: "./"
};