thoughtbot / proteus-gulp

[no longer maintained]
51 stars 8 forks source link

Haml partials? #18

Closed ljuboja closed 7 years ago

ljuboja commented 9 years ago

Hi,

is it possible to get haml partials to work with proteus-gulp? Thx

dpfranklin commented 8 years ago

Yes - a little late. See the haml branch of my fork for more detail but essentially you just need to do the following.

Swap out gulp-ruby-haml for gulp-haml-coffee.

npm uninstall gulp-ruby-haml --save

npm install gulp-haml-coffee --save-dev

Supplement paths to exclude partials from being compiled.

haml: ['./source/views/*.haml', '!./source/views/_*.haml'],

Add include directive and path to partial in your haml template.

+include './source/views/_partial.haml'
tysongach commented 7 years ago

This project is no longer being actively maintained.