helpers / helper-date

Format dates with date.js and moment.js. Uses date.js to parse human readable date phrases, and moment to format the rendered output. Should work with any Handlebars, Lo-Dash, underscore, or any template engine that allows helper functions to be registered. Also compatible with verb, assemble and Template.
MIT License
6 stars 10 forks source link

Fix: expose moment methods as hash properties #8

Open darby3 opened 5 years ago

darby3 commented 5 years ago

I'm not 100% certain this is right, but: in my experience helper-date calls nothing but "format" and immediately returns the results, without calling additional moment methods first. This should help address that, but likely needs additional testing.