nunjucks-comma-filter

Adds a comma filter to the nunjucks templating library.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
nunjucks-comma-filter
1.0.09 years ago9 years agoMinified + gzip package size for nunjucks-comma-filter in KB

Readme

Nunjucks Comma Filter
Nunjucks doesn't have a comma filter! This fixes that.

Install

npm install --save-dev nunjucks-comma-filter

Usage

var nunjucks = require('nunjucks');
var commaFilter = require('nunjucks-comma-filter');

// However you end up with a nunjucks Environment
var env = nunjucks.configure('app', {watch: false});

env.addFilter('comma', commaFilter);

License

MIT © Ryan Murphy