A custom grunt task to include files in HTML files.
basePath
contains the path to your project's rootviewsDir
contains the path to the folder containing the unparsed HTML files withinbasePath
The parser will parse the files in viewsDir
and write them to your project's root.
Files can be included by creating "include tags".
{{ include "inc/header.html" }}
The script starts searching for the file from the project's root.