nunjucks-date-filter-local
v0.1.2
Published
A 'date' filter for Nunjucks implementing moment.js
Downloads
1,386
Readme
nunjucks-date-filter-local
This defines a date
filter for Nunjucks
implementing moment.js, a rich date manager.
npm install nunjucks-date-filter-local --save
This repository is forked from nunjucks-date-filter.
Instead of using moment.utc()
, this library use local timezone to output date. (See #4)
Usage
var dateFilter = require('nunjucks-date-filter-local');
var env = new nunjucks.Environment();
env.addFilter('date', dateFilter);