|
|
@ -31,7 +31,10 @@ var fragments = {};
|
|
|
|
'contact',
|
|
|
|
'contact',
|
|
|
|
'logo',
|
|
|
|
'logo',
|
|
|
|
'noscript',
|
|
|
|
'noscript',
|
|
|
|
'footer'
|
|
|
|
'footer',
|
|
|
|
|
|
|
|
'empty',
|
|
|
|
|
|
|
|
'script',
|
|
|
|
|
|
|
|
'appscript'
|
|
|
|
].forEach(function (name) {
|
|
|
|
].forEach(function (name) {
|
|
|
|
fragments[name] = read('./fragments/' + name + '.html');
|
|
|
|
fragments[name] = read('./fragments/' + name + '.html');
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -41,7 +44,7 @@ var fragments = {};
|
|
|
|
var source = swap(template, {
|
|
|
|
var source = swap(template, {
|
|
|
|
topbar: fragments.topbar,
|
|
|
|
topbar: fragments.topbar,
|
|
|
|
fork: fragments.fork,
|
|
|
|
fork: fragments.fork,
|
|
|
|
main: swap(fragments[page], {
|
|
|
|
main: swap(fragments[page] || fragments.empty, {
|
|
|
|
topbar: fragments.topbar,
|
|
|
|
topbar: fragments.topbar,
|
|
|
|
fork: fragments.fork,
|
|
|
|
fork: fragments.fork,
|
|
|
|
logo: fragments.logo,
|
|
|
|
logo: fragments.logo,
|
|
|
@ -51,6 +54,29 @@ var fragments = {};
|
|
|
|
logo: fragments.logo,
|
|
|
|
logo: fragments.logo,
|
|
|
|
noscript: fragments.noscript,
|
|
|
|
noscript: fragments.noscript,
|
|
|
|
footer: fragments.footer,
|
|
|
|
footer: fragments.footer,
|
|
|
|
|
|
|
|
script: fragments.script
|
|
|
|
});
|
|
|
|
});
|
|
|
|
write('../' + page + '.html', source);
|
|
|
|
write('../' + page + '.html', source);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// build static pages
|
|
|
|
|
|
|
|
['../www/settings/index'].forEach(function (page) {
|
|
|
|
|
|
|
|
var source = swap(template, {
|
|
|
|
|
|
|
|
topbar: fragments.topbar,
|
|
|
|
|
|
|
|
fork: fragments.fork,
|
|
|
|
|
|
|
|
main: swap(fragments[page] || fragments.empty, {
|
|
|
|
|
|
|
|
topbar: fragments.topbar,
|
|
|
|
|
|
|
|
fork: fragments.fork,
|
|
|
|
|
|
|
|
logo: fragments.logo,
|
|
|
|
|
|
|
|
noscript: fragments.noscript,
|
|
|
|
|
|
|
|
footer: fragments.footer,
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
logo: fragments.logo,
|
|
|
|
|
|
|
|
noscript: fragments.noscript,
|
|
|
|
|
|
|
|
footer: fragments.footer,
|
|
|
|
|
|
|
|
script: fragments.appscript
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
write('../' + page + '.html', source);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|