Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Using Slim templates

Joshua Ogle edited this page Jan 28, 2015 · 1 revision

Follow these steps:

  • Remove this line from your package.json (the version number may be different)...:
"gulp-ruby-haml": ...
"gulp-slim": "~0.0.13",
  • Run npm install from your terminal
  • Swap out the require('gulp-ruby-haml') at the top of the Gulpfile with gulp-slim change haml to slim in the views and watch tasks. gulp-slim has some options you might like to use too.
  • Change the file extensions in /source/views from .haml to .slim and convert your markup.

That's it!

By the way, the Slim docs are a great resource, and HTML2Slim is a really handy way to convert templates easily.

Clone this wiki locally