mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
17 lines
401 B
JavaScript
17 lines
401 B
JavaScript
var template = require('marko').load(require.resolve('./template.marko'));
|
|
|
|
exports.render = function(input, out) {
|
|
var templateData = {
|
|
widgetConfig: {
|
|
string: 'world',
|
|
number: 12,
|
|
boolean: true,
|
|
complex: {
|
|
a: '<\"hello">',
|
|
b: 'test'
|
|
}
|
|
}
|
|
};
|
|
|
|
template.render(templateData, out);
|
|
}; |