helper-moment-handlebars

Forked version of https://github.com/assemble/handlebars-helper-moment

Usage no npm install needed!

<script type="module">
  import helperMomentHandlebars from 'https://cdn.skypack.dev/helper-moment-handlebars';
</script>

README

{{moment}}

This is a forked version of https://www.npmjs.com/package/handlebars-helper-moment the only difference being the moment.js file in root. Combining the powers of Assemble, Handlebars.js and Moment.js. This helper leverages Moment.js to provide ultimate control over manipulating time and dates in your templates.

Quickstart

Install the helper:

npm i helper-moment-handlebars --save-dev

Now add the helper to Assemble's options:

assemble: {
  options: {
    // Assemble will automatically resolve the path
    helpers: ['helper-moment-handlebars', 'foo/*.js']
  }
}

Original Author

Mikko Tapionlinna

License

Copyright (c) 2014 Mikko Tapionlinna, contributors. Released under the MIT license