mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
"use strict";
|
|
|
|
var marko_template = module.exports = require("marko/html").t(__filename),
|
|
marko_component = {},
|
|
marko_components = require("marko/components"),
|
|
marko_registerComponent = marko_components.rc,
|
|
marko_componentType = marko_registerComponent("/marko-test$1.0.0/autotests/components-compilation/component-inline-multiple-roots/index.marko", function() {
|
|
return module.exports;
|
|
}),
|
|
marko_helpers = require("marko/runtime/html/helpers"),
|
|
marko_attr = marko_helpers.a;
|
|
|
|
function render(input, out, __component, component, state) {
|
|
var data = input;
|
|
|
|
out.w("<div" +
|
|
marko_attr("id", __component.elId("_r0")) +
|
|
">A</div><span" +
|
|
marko_attr("id", __component.elId("_r1")) +
|
|
">B</span>");
|
|
}
|
|
|
|
marko_template._ = marko_components.r(render, {
|
|
type: marko_componentType,
|
|
roots: [
|
|
"_r0",
|
|
"_r1"
|
|
]
|
|
}, marko_component);
|
|
|
|
marko_template.Component = marko_components.c(marko_component, marko_template._);
|
|
|
|
marko_template.meta = {
|
|
deps: [
|
|
{
|
|
type: "require",
|
|
path: "./"
|
|
}
|
|
]
|
|
};
|