Skip to content

Instantly share code, notes, and snippets.

@cggaurav
Created December 10, 2016 00:49
Show Gist options
  • Save cggaurav/db1bf66350dffd7a4bc12368f2d64ccc to your computer and use it in GitHub Desktop.
Save cggaurav/db1bf66350dffd7a4bc12368f2d64ccc to your computer and use it in GitHub Desktop.
grunt compile handlebars
globbedTemplateAndOutput: {
files: [{
src: 'src/views/index.mustache',
dest: 'www/index',
ext: '.html',
expand: false
},{
src: 'src/views/pages/about.mustache',
dest: 'www/about/index',
ext: '.html',
expand: false
}, {
src: 'src/views/pages/products.mustache',
dest: 'www/products/index',
ext: '.html',
expand: false
}, {
src: 'src/views/pages/press.mustache',
dest: 'www/press/index',
ext: '.html',
expand: false
}, {
src: 'src/views/pages/contact.mustache',
dest: 'www/contact/index',
ext: '.html',
expand: false
}],
templateData: 'src/views/data/content.json',
partials: 'src/views/partials/**/*.mustache',
handlebars: 'node_modules/handlebars'
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment