X-Git-Url: http://git.squeep.com/?p=squeep-html-template-helper;a=blobdiff_plain;f=lib%2Ftemplate-helper.js;h=c983e80acd44329fc6c516ee874198fc2d2e6e58;hp=16a14cc4c3d0bdfd42406a03ef29d31f698eddaa;hb=826ef55e1f8506012d627294c8225cf8b01a5a69;hpb=f37d9d799c5d5c1b044907b9f4950920676401ed diff --git a/lib/template-helper.js b/lib/template-helper.js index 16a14cc..c983e80 100644 --- a/lib/template-helper.js +++ b/lib/template-helper.js @@ -65,6 +65,33 @@ lazy(dateFormat, '_dtf', () => { }); +/** + * Wrap a Date in a ', + ].join(''); +} + + /** * Render a duration. * @param {Number} seconds @@ -367,6 +394,7 @@ function htmlPage(pagePathLevel, ctx, options, main = []) { module.exports = { dateOrNot, dateFormat, + timeElement, secondsToPeriod, htmlHead, htmlBody,