Requires:
- Homebrew (http://mxcl.github.io/homebrew/)
Verify Homebrew is not sick:
brew doctor
Install Node (with NPM) with Homebrew:
brew install node
Add the following to your bash or zsh profile:
export NODE_PATH="/usr/local/lib/node"
export PATH="/usr/local/share/npm/bin:$PATH"
Be sure to add both PATH variables!
Restart Terminal, then run:
npm install -g handlebars
Handlebars is now installed globally.
handlebars templates/ > templates/templates.js