Sha256: 98e14e54296bd05d043ea56af4cdab6fa274f2df72ddb6ea054c47e007fab40c
Contents?: true
Size: 582 Bytes
Versions: 10
Compression:
Stored size: 582 Bytes
Contents
SASS_INIT = (<<-SASS).gsub(/^ {6}/, '') # 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 'haml' initializer :sass, SASS_INIT empty_directory destination_root('/app/stylesheets') end
Version data entries
10 entries across 10 versions & 1 rubygems