Use Volo (npm install volo -g
in the comamnd line with nodejs).
volo create folder_name zestjs/template-singlepage
Alternatively, download the full project including the dependencies here.
Load www/index.html
in the browser to run.
First, install the r.js optimizer:
npm install requirejs -g
Then to build everything into one file, run the build script from the base project folder:
r.js -o build.js
Then load the app from www-built/index.html
.
The entire app is loaded from one script resource, including -
- Templates are compiled
- CSS and LESS is inlined into script
- CoffeeScript is compiled if using require-cs