alanshaw / grunt-include-replace

Grunt task to include files and replace variables. Allows for parameterised includes.
MIT License
200 stars 45 forks source link

How to specify partials? #36

Closed nareshbhatia closed 10 years ago

nareshbhatia commented 10 years ago

If I specify src: '*.html', how does the plugin know which files are the real files to be processed vs. partials (files only to be included). For example, Sass puts allows an underscore prefix for partials. Or is there an assumptions that partials reside in a different directory?

Also can I nest includes?

alanshaw commented 10 years ago

No assumptions. If you tell grunt-include-replace to process *.html then that is what it'll do. If your files have no variables or includes in them then they are copied to your destination directory untouched.

You can include a file, and within the included file you can include other files - so yes, you can next includes :)