concordusapps / grunt-haml

Process HAML templates to precompiled JavaScript or rendered HTML.
https://npmjs.org/package/grunt-haml
MIT License
41 stars 28 forks source link

Exception thrown when transpiling each src/dest group of files. #36

Open dotnetCarpenter opened 9 years ago

dotnetCarpenter commented 9 years ago

undefined is not a function thrown on line haml.js#L58, because file.src is undefined. I haven't found out why yet.

Gruntfile.js:

haml: {
  prod: {
    files: {
      expand: true,
      src: "src/haml/**/*.haml",
      ext: "html",
      rename: function(dest, src) {
        return dest + path.basename( src );
      }
    },
    options: {
      language: "ruby",
      target: "html"
    }
  }
}

Folder structure:

|_app
|_src
   |_haml
      | launchpage.haml      

Haml 4.0.6