Sha256: ea1217bdb6152ec8c48b09812c4be65e634489c83fcfb5631f5ea77c63820431

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

module ShtRails
  class Engine < ::Rails::Engine
    config.before_configuration do |app|
      app.paths['app/views'] << ShtRails.template_base_path
    end
    
    initializer "sprockets.smt_rails", :after => "sprockets.environment", :group => :all do |app|
      next unless app.assets
      app.assets.register_engine(".#{ShtRails.template_extension}", Tilt)
      app.config.assets.paths << ShtRails.template_base_path
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sht_rails-0.1.0 lib/sht_rails/engine.rb