   'site/graphs.html': [d3, bar_chart, graphs]
   'site/user-profile.html': [user_profile]
 
+# Add the shared dependencies to every page
 for k, v of dependencies
   dependencies[k] = shared.concat(v)
+
+# Mapping of source HTML pages to their output paths in the site directory
+bake_map = {}
+for k, v of dependencies
+  bake_map[k] = k.replace('site', 'html')
 
 module.exports = (grunt) ->
   grunt.initConfig

#global module:false

# Official Grunt tasks to load
contribs = ['stylus', 'watch', 'jst', 'connect', 'copy', 'jshint']



    bake:
      build:
        files: bake_map

  grunt.loadNpmTasks "grunt-contrib-#{contrib}" for contrib in contribs
  grunt.loadNpmTasks 'grunt-bake'
