matsumos / grunt-slim

Compile Slim to HTML.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Glob support?

mrjoelkemp opened this issue · comments

Is there glob support for compiling multiple files into separate files? In other words, is there support for something similar to:

Taken from grunt-contrib-coffee

  glob_to_multiple: {
    cwd: 'path/to',
    src: ['*.coffee'],
    dest: 'path/to/dest/'
  }

I've tried doing this with glob syntax in the files object definition of the task and I get a folder created with the name **.

Thanks!

I need this too...

Try expand:true

slim: {
  compile: {
    files: [{
      expand: true
      cwd: 'path/to'
      src: ['{,*/}*.slim']
      dest: 'path/to/dest'
      ext: '.html'
    }]
  }
}

👍 Thanks a ton!