This app was generated with the 'express' flavor of ampersand via the ampersand cli tool.
It's personal preference, but I like Handlebars much better than jade. Whitespace-sensitive syntax has never seemed compelling to me. I'm looking at you- YAML, HAML, Python, and ... CoffeeScript. So, one of my first tasks when starting an Ampersand project was to switch out jade
for something else. handlebars
was recommended on the Ampersand Learn page and is much more HTML-like.
dömthing might be another fine choice, but I didn't fully grok the benefit over handlebars.
I chose to use a gulp plugin for Handlebars over other solutions for 2 main reasons:
- How the namespaces were created. I wanted to keep the same syntax as the generated app:
template: templates.includes.personView
- Compatibility with Handlebars V2.0. At the time, the
gulp
plugin was the only option.grunt-contrib-handlebars
was still on V1, and I prefer gulp as a taskrunner for front-end projects anyhow.
Considered options:
- download/install node.js
- install gulp globally:
$ npm install -g gulp
- install dependencies:
$ npm install
- run it:
$ gulp
- open http://localhost:3000 in a browser
See docs: http://ampersandjs.com/ Curated modules: http://tools.ampersandjs.com/
Ampersand is built by folks at &yet. Example by Drew Fyock