Created
August 13, 2014 17:37
-
-
Save doingweb/91641e5e4c5a9b35836c to your computer and use it in GitHub Desktop.
Templating data with Assemble
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) { | |
grunt.initConfig({ | |
assemble: { | |
options: { | |
data: 'data.yml' | |
}, | |
page: { | |
src: 'index.hbs', | |
dest: 'index.html' | |
} | |
} | |
}); | |
grunt.loadNpmTasks('assemble'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put data in
data.yml
, and the top-level properties will be available inindex.hbs
. Use something like Bootstrap CDN for just-add-water presentation.