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),
components_helpers = require("marko/src/components/helpers"),
marko_registerComponent = components_helpers.rc,
marko_componentType = marko_registerComponent("/marko-test$1.0.0/autotests/compiler/custom-tag-import-var/template.marko", function() {
return module.exports;
}),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_loadTag = marko_helpers.t,
test_import_var_tag = marko_loadTag(require("./tags/test-import-var/renderer"));
function render(input, out, __component, component, state) {
var data = input;
test_import_var_tag({
name: "World",
foo: input.foo,
bar: input.bar,
renderBody: function renderBody(out) {
out.w("This is the body content");
}
}, out, __component, "0");
}
marko_template._ = marko_renderer(render, {
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
components_helpers = require("marko/src/components/helpers"),
marko_registerComponent = components_helpers.rc,
marko_componentType = marko_registerComponent("/marko-test$1.0.0/autotests/compiler/createNodeFromEl/template.marko", function() {
return module.exports;
}),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_loadTag = marko_helpers.t,
test_hello_tag = marko_loadTag(require("./tags/test-hello/renderer"));
function render(input, out, __component, component, state) {
var data = input;
test_hello_tag({
name: "Frank"
}, out);
test_hello_tag({
name: "Frank"
}, out);
test_hello_tag({
name: "Frank"
}, out);
"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-no-output-tag-el/index.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,
test_no_output_tag = marko_loadTag(require("./components/test-no-output/renderer"));
function render(input, out, __component, component, state) {
var data = input;
test_no_output_tag({}, out);
out.w("<div></div>");
}
marko_template._ = marko_renderer(render, {
___type: marko_componentType
}, marko_component);
marko_template.Component = marko_defineComponent(marko_component, marko_template._);
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
components_helpers = require("marko/src/components/helpers"),
marko_registerComponent = components_helpers.rc,
marko_componentType = marko_registerComponent("/marko-test$1.0.0/autotests/compiler/addNestedVariable/template.marko", function() {
return module.exports;
}),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_escapeXml = marko_helpers.x,
marko_loadTag = marko_helpers.t,
test_addNestedVariable_tag = marko_loadTag(require("./tags/test-addNestedVariable/renderer"));
function render(input, out, __component, component, state) {
var data = input;
test_addNestedVariable_tag({
renderBody: function renderBody(out, foo) {
out.w("Hello " +
marko_escapeXml(foo) +
"!");
}
}, out, __component, "0");
}
marko_template._ = marko_renderer(render, {
___implicit: true,
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_componentType = "/marko-test$1.0.0/compiler/fixtures-html-deprecated/nested-tag-shorthand-simple-conditional/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"),
test_message_template = marko_loadTemplate(require.resolve("./components/test-message/template.marko")),
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_loadTag = marko_helpers.t,
test_message_tag = marko_loadTag(test_message_template);
function render(input, out, __component, component, state) {
var data = input;
test_message_tag({
body: someCondition && {
renderBody: function(out) {
out.w("My body");
}
}
}, out, __component, "0");
}
marko_template._ = marko_renderer(render, {
___implicit: true,
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_componentType = "/marko-test$1.0.0/compiler/fixtures-html/await-reorderer/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_reorderer_tag = marko_loadTag(require("marko/src/core-tags/core/await/reorderer-renderer"));
function render(input, out, __component, component, state) {
var data = input;
await_reorderer_tag({}, out, __component, "0");
}
marko_template._ = marko_renderer(render, {
___implicit: true,
___type: marko_componentType
});
marko_template.Component = marko_defineComponent({}, marko_template._);
marko_template.meta = {
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
components_helpers = require("marko/src/components/helpers"),
marko_registerComponent = components_helpers.rc,
marko_componentType = marko_registerComponent("/marko-test$1.0.0/autotests/components-compilation/component-include-attr/index.marko", function() {
return module.exports;
}),
marko_component = require("./component"),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_loadTag = marko_helpers.t,
include_tag = marko_loadTag(require("marko/src/taglibs/core/include-tag"));
function render(input, out, __component, component, state) {
var data = input;
out.w("<div><h1>Header</h1><div>");
include_tag({
_target: data.renderBody
}, out, __component, "3");
out.w("</div></div>");
}
marko_template._ = marko_renderer(render, {
___type: marko_componentType
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
components_helpers = require("marko/src/components/helpers"),
marko_registerComponent = components_helpers.rc,
marko_componentType = marko_registerComponent("/marko-test$1.0.0/autotests/compiler/custom-tag-body-function/template.marko", function() {
return module.exports;
}),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_loadTag = marko_helpers.t,
test_body_function_tag = marko_loadTag(require("./tags/test-body-function/renderer"));
function render(input, out, __component, component, state) {
var data = input;
test_body_function_tag({
name: "World",
myBody: function myBody(foo, bar) {
out.w("This is the body content");
}
}, out, __component, "0");
}
marko_template._ = marko_renderer(render, {
___implicit: true,
___type: marko_componentType
var marko_template = module.exports = require("marko/src/html").t(__filename),
components_helpers = require("marko/src/components/helpers"),
marko_registerComponent = components_helpers.rc,
marko_componentType = marko_registerComponent("/marko-test$1.0.0/autotests/components-compilation/auto-key-els-renderBody/index.marko", function() {
return module.exports;
}),
marko_component = require("./component"),
marko_renderer = components_helpers.r,
marko_defineComponent = components_helpers.c,
marko_keyAttr = require("marko/src/components/taglib/helpers/markoKeyAttr"),
marko_helpers = require("marko/src/runtime/html/helpers"),
marko_attr = marko_helpers.a,
marko_loadTemplate = require("marko/src/runtime/helper-loadTemplate"),
another_component_template = marko_loadTemplate(require.resolve("./components/another-component")),
marko_loadTag = marko_helpers.t,
another_component_tag = marko_loadTag(another_component_template);
function render(input, out, __component, component, state) {
var data = input;
out.w("<div>A");
another_component_tag({
renderBody: function renderBody(out) {
out.w("<div><span>This is <b>static</b></span></div>");
}
}, out, __component, "1");
out.w("</div>");
"use strict";
var marko_template = module.exports = require("marko/src/html").t(__filename),
marko_componentType = "/marko-test$1.0.0/compiler/fixtures-html-deprecated/addNestedVariable/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_loadTag = marko_helpers.t,
test_addNestedVariable_tag = marko_loadTag(require("./tags/test-addNestedVariable/renderer"));
function render(input, out, __component, component, state) {
var data = input;
test_addNestedVariable_tag({
renderBody: function(out, foo) {
out.w("Hello " +
marko_escapeXml(foo) +
"!");
}
}, out, __component, "0");
}
marko_template._ = marko_renderer(render, {
___implicit: true,