Class: Racket::Plugins::Sass
Overview
Sass plugin.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(settings = nil) ⇒ Sass
constructor
Called on plugin initialization.
-
#middleware ⇒ Object
Middleware that should be automatically added.
Methods inherited from Base
Constructor Details
#initialize(settings = nil) ⇒ Sass
Called on plugin initialization.
27 28 29 30 31 32 33 34 35 |
# File 'lib/racket/plugins/sass.rb', line 27 def initialize(settings = nil) super begin require 'sass/plugin/rack' rescue LoadError raise 'Failed to load sass rack plugin!' end apply_sass_settings end |
Instance Method Details
#middleware ⇒ Object
Middleware that should be automatically added.
38 39 40 |
# File 'lib/racket/plugins/sass.rb', line 38 def middleware [[::Sass::Plugin::Rack, nil]] end |