lib/plezi/common/renderer.rb in plezi-0.12.7 vs lib/plezi/common/renderer.rb in plezi-0.12.8

- old
+ new

@@ -49,11 +49,13 @@ if refresh_sass?(filename) eng = Sass::Engine.for_file(filename, cache_store: @sass_cache) Plezi.cache_data filename, eng.dependencies css, map = eng.render_with_sourcemap("#{File.basename(filename, '.*'.freeze)}.map".freeze) Plezi.cache_data filename.sub(/\.s[ac]ss$/, '.map'.freeze), map.to_json( css_uri: File.basename(filename, '.*'.freeze) ) - css + Plezi.cache_data "#{filename}.css", css + return css end + Plezi.get_cached("#{filename}.css") end def refresh_sass? sass return false unless File.exists?(sass) return true if Plezi.cache_needs_update?(sass)