We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
When using grunt-html-build, you can generate a HTML page using many input files.
Let's take an application directory like this :
<html> <head> ... </head> <body> <!-- build:section recursive views --><!-- /build --> <!-- build:section templates --><!-- /build --> </body> </html>
grunt.initConfig({ htmlbuild: { src: 'index.html', dest: 'dist/', options: { sections: { views: 'views/**/*.html', templates: 'templates/**/*.html', } } } });
After grunt build process the index.html file will contain files in views and template directories.
If the recursive option is specified in the tag, grunt-html-build will recursively build every views passed in the section.
Useful to create a main layout file and cut your work in little files.