This commit is contained in:
Patrick Steele-Idem 2015-07-22 10:04:00 -06:00
parent 4596c93668
commit 11190d3db6
5 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1 @@
<h1>DEFAULT TITLE</h1><div>BODY CONTENT</div>FOOTER CONTENT

View File

@ -0,0 +1,9 @@
<h1>
<layout-placeholder name="header">
DEFAULT TITLE
</layout-placeholder>
</h1>
<div>
<layout-placeholder name="body"/>
</div>
<layout-placeholder name="footer"/>

View File

@ -0,0 +1,38 @@
function create(__helpers) {
var str = __helpers.s,
empty = __helpers.e,
notEmpty = __helpers.ne,
__renderer = __helpers.r,
____________node_modules_marko_layout_placeholder_tag_js = __renderer(require("marko-layout/placeholder-tag")),
__tag = __helpers.t;
return function render(data, out) {
out.w('<h1>');
__tag(out,
____________node_modules_marko_layout_placeholder_tag_js,
{
"name": "header",
"content": data.layoutContent
},
function(out) {
out.w('DEFAULT TITLE');
});
out.w('</h1><div>');
__tag(out,
____________node_modules_marko_layout_placeholder_tag_js,
{
"name": "body",
"content": data.layoutContent
});
out.w('</div>');
__tag(out,
____________node_modules_marko_layout_placeholder_tag_js,
{
"name": "footer",
"content": data.layoutContent
});
};
}
(module.exports = require("marko").c(__filename)).c(create);

View File

@ -0,0 +1,4 @@
<layout-use template="./layout-default.html">
<layout-put into="body">BODY CONTENT</layout-put>
<layout-put into="footer">FOOTER CONTENT</layout-put>
</layout-use>

View File

@ -0,0 +1 @@
exports.templateData = {};