Sha256: d0673589ad44a60a51f4075a73a25f7f1a1ea1db76d07df1ef99334ff3dcec0a

Contents?: true

Size: 399 Bytes

Versions: 10

Compression:

Stored size: 399 Bytes

Contents

require 'haml'
require 'rails'

module Haml
  module Rails
    class Railtie < ::Rails::Railtie
      if ::Rails.version.to_f >= 3.1
        config.app_generators.template_engine :haml
      else
        config.generators.template_engine :haml
      end

      config.before_initialize do
        Haml.init_rails(binding)
        Haml::Template.options[:format] = :html5
      end
    end
  end
end

Version data entries

10 entries across 9 versions & 4 rubygems

Version Path
unified_partials-0.0.2 test/haml-railtie.rb
unified_partials-0.0.2 test/throwaway_haml/config/initializers/haml-railtie.rb
haml-rails-0.4 lib/haml-rails.rb
haml-rails-0.3.5 lib/haml-rails.rb
bootstrap-haml-rails-0.4.5 lib/haml-rails.rb
haml-rails-with-i18n-0.1.3 lib/haml-rails.rb
haml-rails-with-i18n-0.1.2 lib/haml-rails.rb
haml-rails-with-i18n-0.1.1 lib/haml-rails.rb
haml-rails-with-i18n-0.1.0 lib/haml-rails.rb
haml-rails-0.3.4 lib/haml-rails.rb