Skip to content

fyockm/amp-gulp-hbs

Repository files navigation

Gulp Handlebars

This app was generated with the 'express' flavor of ampersand via the ampersand cli tool.

Why Hanldebars?

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.

Why Gulp?

I chose to use a gulp plugin for Handlebars over other solutions for 2 main reasons:

  1. How the namespaces were created. I wanted to keep the same syntax as the generated app: template: templates.includes.personView
  2. 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:

How to run it

  1. download/install node.js
  2. install gulp globally: $ npm install -g gulp
  3. install dependencies: $ npm install
  4. run it: $ gulp
  5. open http://localhost:3000 in a browser

How it's structured

See docs: http://ampersandjs.com/ Curated modules: http://tools.ampersandjs.com/

Credits

Ampersand is built by folks at &yet. Example by Drew Fyock

About

Ampersand example using gulp and handlebars

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published