tasks/joosy.coffee in joosy-1.2.0.alpha.15 vs tasks/joosy.coffee in joosy-1.2.0.alpha.16

- old
+ new

@@ -12,11 +12,11 @@ grunt.registerTask 'joosy:compile:code', ['mince:code', 'uglify:application'] grunt.registerTask 'joosy:compile:styles', ['mince:styles', 'cssmin:application'] grunt.registerTask 'joosy:compile:playground', -> hamlc = require 'haml-coffee' - grunt.file.write 'public/index.html', hamlc.compile(grunt.file.read 'source/index.haml')() + grunt.file.write 'public/index.html', hamlc.compile(grunt.file.read 'source/index.haml')(environment: 'production') grunt.registerTask 'joosy:server', -> @async() connect = require('connect') mincer = require('mincer') @@ -36,10 +36,10 @@ server.use '/assets', mincer.createServer(assets) server.use '/', (req, res, next) -> if req.url == '/' - res.end hamlc.compile(grunt.file.read 'source/index.haml')() + res.end hamlc.compile(grunt.file.read 'source/index.haml')(environment: 'development') else next() server.use connect.static('public') server.listen 4000