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