alanshaw / grunt-include-replace

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

Add built in local variable "docroot" that contains relative path from included file to the document root #11

Closed alanshaw closed 11 years ago

alanshaw commented 11 years ago

It would default to location of the Gruntfile.js

If include is at foo/bar/index.html then @@docroot when used in this file refers to "../../".