Sha256: 539f64ebbbe36598291b422b0f494ee5eeb2aa7a28e3d8ab1e4c14b1aa1d34c4

Contents?: true

Size: 708 Bytes

Versions: 17

Compression:

Stored size: 708 Bytes

Contents

module Padrino
  module Generators
    module Components
      module Renderers

        module HamlGen

          SASS_INIT = (<<-SASS).gsub(/^ {10}/, '')
          # Enables support for SASS template reloading for rack.
          # See http://nex-3.com/posts/88-sass-supports-rack for more details.

          module SassInitializer
            def self.registered(app)
              require 'sass/plugin/rack'
              app.use Sass::Plugin::Rack
            end
          end
          SASS

          def setup_renderer
            require_dependencies 'haml'
            create_file destination_root('/config/initializers/sass.rb'), SASS_INIT
          end
        end

      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
padrino-gen-0.8.5 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.8.4 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.8.3 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.8.2 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.8.1 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.8.0 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.7.9 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.7.8 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.7.7 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.7.6 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.7.5 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.7.4 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.7.3 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.7.2 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.7.1 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.7.0 lib/padrino-gen/generators/components/renderers/haml_gen.rb
padrino-gen-0.6.7 lib/padrino-gen/generators/components/renderers/haml_gen.rb