Skip to content

Instantly share code, notes, and snippets.

@ilaborie
Last active August 29, 2015 14:02
Show Gist options
  • Save ilaborie/83925b72a4ff062f6fe4 to your computer and use it in GitHub Desktop.
Save ilaborie/83925b72a4ff062f6fe4 to your computer and use it in GitHub Desktop.
Static website with Grunt and Handlebars
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
'compile-handlebars': {
all: {
preHTML: 'src/pre.html',
postHTML: 'src/post.html',
template: 'src/body.hbs',
templateData: 'src/data.json',
output: 'build/index.html'
}
}
});
// Handlebars.
grunt.loadNpmTasks('grunt-compile-handlebars');
// Default task(s).
grunt.registerTask('default', ['compile-handlebars']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment