mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
16 lines
428 B
JavaScript
16 lines
428 B
JavaScript
module.exports = {
|
|
render: function (input, context) {
|
|
var content = input.content[input.name];
|
|
if (content) {
|
|
if (content.value) {
|
|
context.write(content.value);
|
|
} else if (content.invokeBody) {
|
|
content.invokeBody();
|
|
}
|
|
} else {
|
|
if (input.invokeBody) {
|
|
input.invokeBody();
|
|
}
|
|
}
|
|
}
|
|
}; |