Sha256: e445fe46fb8cd487fd809716a351a688030d747f0da549a65e90707a8dbd8d6f

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

require 'haml'
require 'rails'

module Haml
  module Bootstrap
    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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
haml-bootstrap-rails-0.3.11 lib/haml-bootstrap-rails.rb