Last active
August 29, 2015 14:02
-
-
Save ilaborie/83925b72a4ff062f6fe4 to your computer and use it in GitHub Desktop.
Static website with Grunt and Handlebars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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