lib/capcode/render/sass.rb in Capcode-0.8.2 vs lib/capcode/render/sass.rb in Capcode-0.8.4

- old
+ new

@@ -1,16 +1,18 @@ require "sass" module Capcode module Helpers @@__SASS_PATH__ = "." - def self.sass_path=( p ) + + # Set the path to Sass files. If this path is not set, Capcode will search in the static path. + def self.sass_path=( p ) #:nodoc: @@__SASS_PATH__ = p end def render_sass( f, _ ) #:nodoc: if @@__SASS_PATH__.nil? - @@__SASS_PATH__ = "." + (Capcode.static.nil? == false)?Capcode.static:'' + @@__SASS_PATH__ = "." + (Capcode.static.nil? == false)?Capcode.static():'' end f = f.to_s if f.include? '..' return [403, {}, '403 - Invalid path'] \ No newline at end of file