require 'ember/handlebars/template' module Ember module Rails class Engine < ::Rails::Engine config.handlebars = ActiveSupport::OrderedOptions.new config.handlebars.precompile = true config.handlebars.templates_root = "templates" config.handlebars.templates_path_separator = '/' initializer "ember_rails.setup", :group => :all do |app| require 'ember/filters/slim' if defined? Slim require 'ember/filters/haml' if defined? Haml app.assets.register_engine '.handlebars', Ember::Handlebars::Template app.assets.register_engine '.hbs', Ember::Handlebars::Template app.assets.register_engine '.hjs', Ember::Handlebars::Template end end end end