Sha256: 845b5451d9a5a159f3cf9c4a0541e497037a542d12d2cb301213aa9dc8138bb8

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 Bytes

Contents

SASS_INIT = <<-SASS unless defined?(SASS_INIT)
    # 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] = Tennpipes.root("app/stylesheets")
    Sass::Plugin.options[:css_location] = Tennpipes.root("public/stylesheets")
    app.use Sass::Plugin::Rack
SASS

def setup_stylesheet
  require_dependencies 'sass'
  initializer :sass, SASS_INIT.chomp
  empty_directory destination_root('/app/stylesheets')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tennpipes-init-3.6.6 lib/tennpipes-init/generators/components/stylesheets/sass.rb