Sha256: 88ee793d12da7ed0da4d06157f3a90e6edab22b413ccbb2acba1f43e788a00b0
Contents?: true
Size: 559 Bytes
Versions: 4
Compression:
Stored size: 559 Bytes
Contents
module Sinatra 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
4 entries across 4 versions & 1 rubygems