Skip to content

dioscouri/swig-lodash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

#swig-lodash

Use lodash functions as swig filters.

##Install npm install --save swig-lodash

##Usage

var swigLodash = require('swig-lodash')
  , swig = require('swig')

//Add all lodash functions
swigLodash.useFilter(swig)

//Add only one lodash function
swigLodash.useFilter(swig, 'find')

//Add multiple lodash functions
swigLodash.useFilter(swig, ['groupBy', 'shuffle'])

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

<p class="name">{{ people|find({age: 23}).name }}</p>

Made with ⚡️ by @taterbase

About

Use lodash functions as swig filters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%