Skip to content

Instantly share code, notes, and snippets.

@doingweb
Created August 13, 2014 17:37
Show Gist options
  • Save doingweb/91641e5e4c5a9b35836c to your computer and use it in GitHub Desktop.
Save doingweb/91641e5e4c5a9b35836c to your computer and use it in GitHub Desktop.
Templating data with Assemble
module.exports = function(grunt) {
grunt.initConfig({
assemble: {
options: {
data: 'data.yml'
},
page: {
src: 'index.hbs',
dest: 'index.html'
}
}
});
grunt.loadNpmTasks('assemble');
};
@doingweb
Copy link
Author

Put data in data.yml, and the top-level properties will be available in index.hbs. Use something like Bootstrap CDN for just-add-water presentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment