Windows
Install git for windows from here:
http://code.google.com/p/msysgit/downloads/list?q=full+installer+for+official+git
Install node.js from here
Use the windows installer, not the exe
Fire up Git Bash
Issue the following command in the command prompt
$>npm install handlebars -g
The -g installs handlebars globally.
Add the following into the PATH settings
%APPDATA%\npm;
To do That run the following command in git bash (I've only tested this in windows7)
$>RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4
Click on the advanced tab
Click on the Environment variables button
In the system variables box scroll down to the PATH setting
Click on Edit
Add the PATH setting above into that dialog, Click OK all the way out
Navigate to the folder that contains the .handlebars files (using the gitbash shell)
Execute the following command from the prompt
$>handlebars *.handlebars -f templates.js
That'll create a templates.js file
-or-
If you are in the core folder (one folder up from the templates folder)
- Assuming the folder containing the .handlebars files is called templates
$>handlebars templates -f ./template/templates.js