Skip to content

dioscouri/swig-inflections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

swig-inflections

Use i functions as swig filters.

##Install npm install --save swig-inflections

##Usage

var swigInflections = require('swig-inflections'), swig = require('swig')

//Add all i functions
swigInflections.useFilter(swig)

//Add only one i function
swigInflections.useFilter(swig, 'camelize')

//Add multiple i functions
swigInflections.useFilter(swig, ['singularize', 'pluralize'])

Now you can use the i functions as a swig filter.

<p class="cup">{{ cups|singularize }}</p>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published