node-underscorify / 0.0.12 last updated a year ago created on Aug 12th 2013
Install
npm install --save node-underscorify
Clone
git clone git@github.com:maxparm/node-underscorify.git
dependencies
show all 37
| main |
|
html-minifier | 0.5.6 | MIT |
|
|
underscore | 1.7.0 | MIT | |
|
|
through | 2.3.4 | MIT |
maintainers
maxparm
versions
12 total
| 0.0.12 | a year ago | maxparm |
| 0.0.11 | a year ago | maxparm |
| 0.0.10 | a year ago | maxparm |
| 0.0.9 | a year ago | maxparm |
| 0.0.8 | a year ago | maxparm |
| 0.0.7 | a year ago | maxparm |
| 0.0.6 | a year ago | maxparm |
| 0.0.5 | a year ago | maxparm |
| 0.0.4 | 2 years ago | maxparm |
| 0.0.3 | 2 years ago | maxparm |
| 0.0.2 | 2 years ago | maxparm |
| 0.0.1 | 2 years ago | maxparm |
readme
node-underscorify
Underscore precompiler plugin for Browserify v2.
Inspired and based on node-hbsfy
Setup
Install node-underscorify in your project via npm:
npm install node-underscorify
Then use the node-underscorify within the browserify command line transform option:
browserify -t node-underscorify main.js > bundle.js
Advanced setup thru API
node-underscorify can accept custom options unsing browserify API:
Accepted options:
extensions: array of file extensions that will be considered as underscore templatestemplateSettings: underscore template settingsrequires: array of modules to import. Example:requires:[{variable: '_', module: 'underscore'}]
Usage
template.html
main.js
It will render: <div>Hello Node Underscorify!</div>