Sha256: f5c1ff6d317be3ac1d3eef72f8efeb4dd5ba2f8344de486a6bdf16bc6a804722

Contents?: true

Size: 620 Bytes

Versions: 10

Compression:

Stored size: 620 Bytes

Contents

SCSS_INIT = (<<-SCSS).gsub(/^ {6}/, '')
# Enables support for SCSS template reloading in rack applications.
# See http://nex-3.com/posts/88-sass-supports-rack for more details.
# Store SCSS files (by default) within 'app/stylesheets'
require 'sass/plugin/rack'
Sass::Plugin.options[:syntax] = :scss
Sass::Plugin.options[:template_location] = Padrino.root("app/stylesheets")
Sass::Plugin.options[:css_location] = Padrino.root("public/stylesheets")
app.use Sass::Plugin::Rack
SCSS

def setup_stylesheet
  require_dependencies 'haml'
  initializer :scss, SCSS_INIT
  empty_directory destination_root('/app/stylesheets')
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
padrino-gen-0.9.24 lib/padrino-gen/generators/components/stylesheets/scss.rb
padrino-gen-0.9.23 lib/padrino-gen/generators/components/stylesheets/scss.rb
padrino-gen-0.9.22 lib/padrino-gen/generators/components/stylesheets/scss.rb
padrino-gen-0.9.21 lib/padrino-gen/generators/components/stylesheets/scss.rb
padrino-gen-0.9.20 lib/padrino-gen/generators/components/stylesheets/scss.rb
padrino-gen-0.9.19 lib/padrino-gen/generators/components/stylesheets/scss.rb
padrino-gen-0.9.18 lib/padrino-gen/generators/components/stylesheets/scss.rb
padrino-gen-0.9.17 lib/padrino-gen/generators/components/stylesheets/scss.rb
padrino-gen-0.9.16 lib/padrino-gen/generators/components/stylesheets/scss.rb
padrino-gen-0.9.15 lib/padrino-gen/generators/components/stylesheets/scss.rb