Hi, I'm trying to use your example and I'm getting the following output on the command line:
unknownd8a25e8b001d:socket_chat_example glenselle$ grunt
Running "ember_handlebars:all" (ember_handlebars) task
Warning: Unable to write "views/templates/compiled" file (Error code: EISDIR). Use --force to continue.
Aborted due to warnings.
All I want to do is compile the templates and then put them in the views/templates/compiled directory. Here's what my Gruntfile.js looks like:
module.exports = function(grunt) {
grunt.initConfig({
// Include package.json for dynamic naming based on info from package.json
pkg: grunt.file.readJSON('package.json'),
// Compile ember templates:
ember_handlebars: {
all: {
src: 'views/templates/*.hbs',
dest: 'views/templates/compiled'
}
},
// Include the templates in your app:
concat: {
all: {
files: {
'public/javascripts/templates.js' : 'views/templates/compiled/*.js'
}
}
}
});
// Load the neccessary Grunt plugins installed via NPM
grunt.loadNpmTasks('grunt-ember-handlebars');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('default', ['ember_handlebars', 'concat']);
}