class Tilt::SassTemplate
Sass template implementation for generating CSS. See: sass-lang.com/
Sass templates do not support object scopes, locals, or yield.
Constants
- Engine
Public Instance Methods
Source
# File lib/tilt/sass.rb 18 def _prepare_output 19 ::Sass.compile_string(@data, **sass_options).css 20 end
Source
# File lib/tilt/sass.rb 22 def sass_options 23 path = File.absolute_path(eval_file) 24 path = '/' + path unless path.start_with?('/') 25 @options[:url] = ::URI::File.build([nil, ::URI::DEFAULT_PARSER.escape(path)]).to_s 26 @options[:syntax] = :indented 27 @options 28 end