{{datetime}}
Handlebars helper for adding RFC-822 formatted datetimes to XML feeds
Installation
Use npm to install the package:
npm i handlebars-helper-datetime --save-dev
Use bower to install the package:
bower install handlebars-helper-datetime --save-dev
Usage
With the helper registered, you may now begin using it in your templates:
Use "now" as the date
{{datetime}}
Or pass in a context
{{datetime page.date}}
Results in
11 -0500
Assemble
Usage withThe easiest way to register the helper with Assemble is to add the module to both devDependencies
and keywords
in your project's package.json:
Alternatively, to register the helper explicitly in the Gruntfile:
grunt;
Author
License and Copyright
Licensed under the MIT License. Copyright (c) 2014 Jon Schlinkert, contributors.