Sha256: 1613e7c9185bd4d3d69bbb0ff8bb325603b9ec60650bdda8ea40f03b1bffc781

Contents?: true

Size: 799 Bytes

Versions: 43

Compression:

Stored size: 799 Bytes

Contents

LESS_INIT = <<-LESS unless defined?(LESS_INIT)
    # Enables support for Less template reloading for rack.
    # Store Less files by default within 'app/stylesheets/'.
    # See http://github.com/kelredd/rack-less for more details.
    require 'rack/less'
    # optional - use as necessary
    Rack::Less.configure do |config|
      config.compress = true
      # config.cache = true
      # other configs ...
    end
    app.use Rack::Less,
      :root      => Padrino.root,
      :source    => 'app/stylesheets',
      :public    => 'public',
      :hosted_at => 'stylesheets'
LESS

def setup_stylesheet
  require_dependencies 'less'
  require_dependencies 'rack-less'
  require_dependencies 'therubyracer'
  initializer :less, LESS_INIT
  empty_directory destination_root('/app/stylesheets')
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
padrino-gen-0.16.0.pre3 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.16.0.pre2 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.15.3 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.15.2 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.15.1 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.15.0 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.14.4 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.14.3 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.12.9 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.14.2 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.13.3.4 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.14.1.1 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.14.1 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.14.0.2 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.14.0.1 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.14.0 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.14.0.rc2 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.14.0.rc1 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.13.3.3 lib/padrino-gen/generators/components/stylesheets/less.rb
padrino-gen-0.13.3.2 lib/padrino-gen/generators/components/stylesheets/less.rb