mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
16 lines
243 B
JavaScript
16 lines
243 B
JavaScript
var template = require("marko/vdom").c(__filename);
|
|
|
|
module.exports = template;
|
|
|
|
function render(data, out) {
|
|
out.e("div", {
|
|
foo: "bar",
|
|
hello: "world"
|
|
}, 3)
|
|
.t("Hello ")
|
|
.t(name)
|
|
.t("!");
|
|
}
|
|
|
|
template._ = render;
|