Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_componentType = "/marko-test$1.0.0/compiler/fixtures-html/dynamic-tag/template.marko",
components_helpers = require("marko/src/runtime/components/helpers"),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_loadTemplate = require("marko/src/runtime/helper-loadTemplate"),
Target = marko_loadTemplate(require.resolve("./target.marko")),
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_dynamicTag = marko_helpers.d;
function render(input, out, __component, component, state) {
var data = input;
marko_dynamicTag(out, Target, null, null, null, null, __component, "0");
}
marko_template._ = marko_renderer(render, {
___implicit: true,
___type: marko_componentType
});
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_componentType = "/marko-test$1.0.0/components-compilation/fixtures-html/bind-widget/index.marko",
marko_component = require("./component"),
components_helpers = require("marko/src/runtime/components/helpers"),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c;
function render(input, out, __component, component, state) {
var data = input;
out.w("<div></div>");
}
marko_template._ = marko_renderer(render, {
___type: marko_componentType
}, marko_component);
marko_template.Component = marko_defineComponent(marko_component, marko_template._);
marko_template.meta = {
id: "/marko-test$1.0.0/components-compilation/fixtures-html/bind-widget/index.marko",
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_component = {},
marko_componentType = "/marko-test$1.0.0/components-compilation/fixtures-html/boundary-el-if/index.marko",
components_helpers = require("marko/src/runtime/components/helpers"),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c;
function render(input, out, __component, component, state) {
var data = input;
out.w("<h1></h1>");
if (input.someCondition) {
out.w("<span></span>");
}
}
marko_template._ = marko_renderer(render, {
___type: marko_componentType
}, marko_component);
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_componentType = "/marko-test$1.0.0/compiler/fixtures-html/await-timeout/template.marko",
components_helpers = require("marko/src/runtime/components/helpers"),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_loadTag = marko_helpers.t,
await_tag = marko_loadTag(require("marko/src/core-tags/core/await/renderer"));
function render(input, out, __component, component, state) {
var data = input;
await_tag({
timeout: 100,
name: "userInfo4",
_provider: data.userInfo,
_name: "data.userInfo",
then: {
renderBody: function(out, userInfo) {
out.w("4");
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_componentType = "/marko-test$1.0.0/compiler/fixtures-html/simple/template.marko",
components_helpers = require("marko/src/runtime/components/helpers"),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_escapeXml = marko_helpers.x,
marko_forEach = marko_helpers.f;
function render(input, out, __component, component, state) {
var data = input;
out.w("Hello " +
marko_escapeXml(input.name) +
"! ");
if (input.colors.length) {
out.w("<ul>");
var $for$0 = 0;</ul>
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_componentType = "/marko-test$1.0.0/compiler/fixtures-html/no-update/template.marko",
components_helpers = require("marko/src/runtime/components/helpers"),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_attr = marko_helpers.a;
require("marko/src/runtime/vdom/preserve-attrs");
function render(input, out, __component, component, state) {
var data = input;
out.w("
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_componentType = "/marko-test$1.0.0/compiler/fixtures-html-deprecated/custom-tag-arguments/template.marko",
components_helpers = require("marko/src/runtime/components/helpers"),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_loadTag = marko_helpers.t,
custom_tag_data_tag = marko_loadTag(require("./custom-tag-data-tag"));
function render(input, out, __component, component, state) {
var data = input;
custom_tag_data_tag({
name: "Frank",
age: 32
}, out, __component, "0");
custom_tag_data_tag({
name: "Frank".toUpperCase(),
age: 32
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_componentType = "/marko-test$1.0.0/compiler/fixtures-html/for-array/template.marko",
components_helpers = require("marko/src/runtime/components/helpers"),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_forEach = marko_helpers.f,
marko_escapeXml = marko_helpers.x;
function render(input, out, __component, component, state) {
var data = input;
marko_forEach([
"red",
"green",
"blue"
], function(color) {
out.w(marko_escapeXml(color));
});
}
"use strict";
var marko_template = module.exports = require("marko/src/vdom").t(),
components_helpers = require("marko/src/runtime/components/helpers"),
marko_registerComponent = components_helpers.rc,
marko_componentType = marko_registerComponent("/marko-test$1.0.0/vdom-compiler/fixtures/doctype/template.marko", function() {
return module.exports;
}),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_helpers = require("marko/src/runtime/vdom/helpers"),
marko_createElement = marko_helpers.e,
marko_const = marko_helpers.const,
marko_const_nextId = marko_const("a51026"),
marko_node0 = marko_createElement("div", null, null, null, 0, 0, {
i: marko_const_nextId()
});
function render(input, out, __component, component, state) {
var data = input;
out.n(marko_node0, component);
}
marko_template._ = marko_renderer(render, {
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_componentType = "/marko-test$1.0.0/compiler/fixtures-html/attr-escape/template.marko",
components_helpers = require("marko/src/runtime/components/helpers"),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_classAttr = marko_helpers.ca,
marko_attr = marko_helpers.a,
marko_escapeXmlAttr = marko_helpers.xa;
function render(input, out, __component, component, state) {
var data = input;
out.w("