mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
18 lines
486 B
JavaScript
18 lines
486 B
JavaScript
var template = require("marko/html").c(__filename);
|
|
|
|
module.exports = template;
|
|
|
|
var marko_helpers = require("marko/runtime/html/helpers"),
|
|
marko_loadTemplate = marko_helpers.l,
|
|
target_template = marko_loadTemplate(require.resolve("./target.marko")),
|
|
marko_loadTag = marko_helpers.t,
|
|
include_tag = marko_loadTag(require("marko/taglibs/core/include-tag"));
|
|
|
|
function render(data, out) {
|
|
include_tag({
|
|
_target: target_template
|
|
}, out);
|
|
}
|
|
|
|
template._ = render;
|