grunt-includes icon indicating copy to clipboard operation
grunt-includes copied to clipboard

Can't seem to get the option.template to work

Open sethaldridge opened this issue 10 years ago • 1 comments

Hi,

I'm testing out your plugin and the basics are really straightforward. I might be doing something dumb, but wanted your opinion.

Ideally I'd have one template HTML file app/pages/wrapper.html

Inside this file I have the {{file}} variable. I then have this defined in my gruntfile like this:

  includes: {
      files: {
        src: ['app/pages/partials/*.html'], // Source files 
        dest: 'dist', // Destination directory 
        flatten: true,
        cwd: '.',
        options: {
          template: 'app/pages/wrapper.html',
          debut: true
        }
      }
    },

This does nothing to my src files. I've even tried a hardcoded HTML string. How is the template options supposed to work?

My file structure:

/app
  /partials
    page1.html
    page2.html
  wrapper.html

sethaldridge avatar Sep 01 '15 03:09 sethaldridge

+1 xD

ghost avatar Mar 19 '16 11:03 ghost