Sha256: 508e6c8d43d1ab76d272f52c5aa5eb1db4c57bc87914ce827e34ad2f34a9e2ae

Contents?: true

Size: 625 Bytes

Versions: 43

Compression:

Stored size: 625 Bytes

Contents

SASS_INIT = <<-SASS unless defined?(SASS_INIT)
    # Enables support for SASS template reloading in rack applications.
    # See http://nex-3.com/posts/88-sass-supports-rack for more details.
    # Store SASS files (by default) within 'app/stylesheets'.
    require 'sass/plugin/rack'
    Sass::Plugin.options[:template_location] = Padrino.root("app/stylesheets")
    Sass::Plugin.options[:css_location] = Padrino.root("public/stylesheets")
    app.use Sass::Plugin::Rack
SASS

def setup_stylesheet
  require_dependencies 'sass'
  initializer :sass, SASS_INIT.chomp
  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/sass.rb
padrino-gen-0.16.0.pre2 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.15.3 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.15.2 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.15.1 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.15.0 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.14.4 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.14.3 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.12.9 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.14.2 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.13.3.4 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.14.1.1 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.14.1 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.14.0.2 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.14.0.1 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.14.0 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.14.0.rc2 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.14.0.rc1 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.13.3.3 lib/padrino-gen/generators/components/stylesheets/sass.rb
padrino-gen-0.13.3.2 lib/padrino-gen/generators/components/stylesheets/sass.rb