1.2.1 • Published 9 years ago

swig-lodash v1.2.1

Weekly downloads
6
License
ISC
Repository
github
Last release
9 years ago

#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

1.2.1

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago