-
Notifications
You must be signed in to change notification settings - Fork 643
/
expected.js
58 lines (50 loc) · 1.44 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
var marko_template = module.exports = require("marko/html").t(__filename),
marko_widgets = require("marko/widgets"),
marko_registerWidget = marko_widgets.rw,
marko_widgetType = marko_registerWidget("/marko-test$1.0.0/autotests/widgets-compilation/ref/index.marko", function() {
return module.exports;
}),
marko_loadTemplate = require("marko/runtime/helper-loadTemplate"),
app_foo_template = marko_loadTemplate(require.resolve("./components/app-foo")),
marko_helpers = require("marko/runtime/html/helpers"),
marko_loadTag = marko_helpers.t,
app_foo_tag = marko_loadTag(app_foo_template),
marko_attr = marko_helpers.a;
var marko_component = {
onMount: function () {
}
};
function render(input, out, widget, state) {
var data = input;
out.w("<div class=\"root\"" +
marko_attr("id", widget.id) +
">");
app_foo_tag({
$w: [
widget,
"foo"
]
}, out);
out.w("<a href=\"ebay.com\"" +
marko_attr("id", widget.elId("link")) +
">eBay</a></div>");
}
marko_template._ = marko_widgets.r(render, {
type: marko_widgetType
}, marko_component);
marko_template.Widget = marko_widgets.w(marko_component, marko_template._);
marko_template.meta = {
deps: [
{
type: "require",
path: "./index.marko"
},
{
type: "require",
path: "marko/widgets"
}
],
tags: [
"./components/app-foo"
]
};