cheshire137 / gulp-ruby-haml

Haml plugin for Gulp that uses the Ruby Haml gem.
https://www.npmjs.com/package/gulp-ruby-haml
MIT License
27 stars 13 forks source link

LoadError when trying to require multiple files #16

Open kty opened 8 years ago

kty commented 8 years ago

Relevant piece of my gulpfile:

.pipe(haml({
    require: [
        "date",
        "./lib/haml/render.rb",
    ]
}))

This results in error:

'LoadError: cannot load such file -- date,./lib/haml/render.rb\n Use --trace for backtrace.\n'

AFAIK, each entry in require should be passed as a separate -r parameter, i.e.:

haml -r date,./lib/haml/render.rb

should be

haml -r date -r ./lib/haml/render.rb

Changing the relevant bit in the task's index.js made it work (I could make a pull request).

Unless I'm doing something wrong?

cheshire137 commented 8 years ago

A pull request would be welcome! Otherwise I can look at this probably next week.