0.1.2 • Published 8 years ago

nunjucks-date-filter-local v0.1.2

Weekly downloads
16
License
-
Repository
github
Last release
8 years ago

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);