Sha256: 7250156039f6663d1b0e5177de0290717126e3af10e315351a28cc5ae83c98a3
Contents?: true
Size: 891 Bytes
Versions: 1
Compression:
Stored size: 891 Bytes
Contents
require 'ember/handlebars/template' require 'sprockets/railtie' module Ember module Rails class Engine < ::Rails::Engine Ember::Handlebars::Template.configure do |handlebars_config| config.handlebars = handlebars_config config.handlebars.precompile = true config.handlebars.templates_root = 'templates' config.handlebars.templates_path_separator = '/' config.handlebars.output_type = :global config.handlebars.ember_template = Ember::VERSION =~ /\A1.[0-9]\./ ? 'Handlebars' : 'HTMLBars' end config.before_initialize do |app| Sprockets::Engines #force autoloading Sprockets.register_engine '.handlebars', Ember::Handlebars::Template Sprockets.register_engine '.hbs', Ember::Handlebars::Template Sprockets.register_engine '.hjs', Ember::Handlebars::Template end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ember-rails-lite-0.18.0 | lib/ember/rails/engine.rb |