Sha256: e18d45506268decdbc0b704aa87c7f40bad841dec060d580ded1f47f0389d993

Contents?: true

Size: 563 Bytes

Versions: 19

Compression:

Stored size: 563 Bytes

Contents

module SinatraMore
  module HamlRendererGen

    SASS_INIT = (<<-SASS).gsub(/^ {4}/, '')
    # 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("config/initializers/sass.rb", SASS_INIT)
      empty_directory('public/stylesheets/sass')
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
sinatra_more-0.3.43 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.42 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.41 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.40 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.39 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.38 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.37 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.36 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.35 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.34 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.33 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.32 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.31 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.30 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.29 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.28 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.27 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.26 generators/components/renderers/haml_renderer_gen.rb
sinatra_more-0.3.25 generators/components/renderers/haml_renderer_gen.rb