Method: Webgen::ContentProcessor::Sass.default_options

Defined in:
lib/webgen/content_processor/sass.rb

.default_options(context) ⇒ Object

:nodoc:



139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/webgen/content_processor/sass.rb', line 139

def self.default_options(context) # :nodoc:
  opts = context.website.config['content_processor.sass.options']
  load_paths = context.website.ext.sass_load_paths + [NodeTreeImporter.new(context)]
  opts.merge({
               :filename => context.ref_node.alcn,
               :syntax => :sass,
               :cache_store => ::Sass::CacheStores::Filesystem.new(context.website.tmpdir('content_processor.sass')),
               :filesystem_importer => FileSystemImporter,
               :load_paths => load_paths,
               :webgen_context => context
             })
end