nunjucks-filter

Nunjucks extension that brings a 'filter' tag

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
nunjucks-filter
212.0.17 years ago8 years agoMinified + gzip package size for nunjucks-filter in KB

Readme

Nunjucks filter
NPM version
Nunjucks extension that brings a "filter" tag

How to install it?

$ npm install nunjucks-filter

How to use it?

var FilterExtension = require("nunjucks-filter")(nunjucks);

env.addExtension('FilterExtension', new FilterExtension(env));

{% applyFilter "replace" "." "!" %}
Hi. My name is Paul.
{% endApplyFilter %}

// => Hi! My name is Paul!