Sha256: 084282c3cccc54679dd0903554795a079d21532296fdf66972971e604e5fc454

Contents?: true

Size: 1.8 KB

Versions: 1

Compression:

Stored size: 1.8 KB

Contents

module Opal::Rails
  class Railtie < ::Rails::Railtie
    config.opal = ActiveSupport::OrderedOptions.new
    
    # # Establish static configuration defaults
    # # Emit scss files during stylesheet generation of scaffold
    # config.sass.preferred_syntax = :scss
    # # Use expanded output instead of the sass default of :nested
    # config.sass.style            = :expanded
    # # Write sass cache files to tmp/sass-cache for performance
    # config.sass.cache            = true
    # # Read sass cache files from tmp/sass-cache for performance
    # config.sass.read_cache       = true
    # # Display line comments above each selector as a debugging aid
    # config.sass.line_comments    = true
    # # Initialize the load paths to an empty array
    # config.sass.load_paths       = []
    # # Send Sass logs to Rails.logger
    # config.sass.logger           = Sass::Rails::Logger.new
    # 
    # initializer :setup_sass do |app|
    #   # Set the stylesheet engine to the preferred syntax
    #   config.app_generators.stylesheet_engine syntax
    # 
    #   # Set the sass cache location to tmp/sass-cache
    #   config.sass.cache_location   = File.join(Rails.root, "tmp/sass-cache")
    # 
    #   # Establish configuration defaults that are evironmental in nature
    #   if config.sass.full_exception.nil?
    #     # Display a stack trace in the css output when in development-like environments.
    #     config.sass.full_exception = app.config.consider_all_requests_local
    #   end
    # end
    # 
    # initializer :setup_compression do |app|
    #   if app.config.assets.compress
    #     # Use sass's css_compressor
    #     app.config.assets.css_compressor = CssCompressor.new
    #   end
    # end
    # 
    # config.after_initialize do |app|
    #   Sass::logger = app.config.sass.logger
    # end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opal-rails-0.0.1.a lib/opal/rails/railtie.rb