mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
18 lines
337 B
JavaScript
18 lines
337 B
JavaScript
'use strict';
|
|
|
|
module.exports = function(builder) {
|
|
var templateRoot = builder.templateRoot([
|
|
builder.htmlElement(
|
|
'div',
|
|
[])
|
|
]);
|
|
|
|
templateRoot.prependChild(builder.vars([
|
|
{
|
|
id: 'foo',
|
|
init: builder.literal('bar')
|
|
}
|
|
]));
|
|
|
|
return templateRoot;
|
|
}; |