mirror of
https://github.com/marko-js/marko.git
synced 2026-01-25 15:03:04 +00:00
* Switch to in memory lasso builds and other optimizations. * Condense components-compilation tests. * Update lasso-fs-writer * Condense components-compilation and compiler tests * Increase mocha test timeout * Allow lasso to be gc'd for tests * Improve test cache clearing * Fix lasso memory leak in tests * Cache instanbul intrumenting. * Hide complain logs.
38 lines
1.2 KiB
JavaScript
38 lines
1.2 KiB
JavaScript
"use strict";
|
|
|
|
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
|
marko_componentType = "/marko-test$1.0.0/components-compilation/fixtures-html/component-include-attr/index.marko",
|
|
marko_component = require("./component"),
|
|
components_helpers = require("marko/src/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,
|
|
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
|
|
}, marko_component);
|
|
|
|
marko_template.Component = marko_defineComponent(marko_component, marko_template._);
|
|
|
|
marko_template.meta = {
|
|
id: "/marko-test$1.0.0/components-compilation/fixtures-html/component-include-attr/index.marko",
|
|
component: "./",
|
|
tags: [
|
|
"marko/src/taglibs/core/include-tag"
|
|
]
|
|
};
|