Allow caching in unsafe mode, but disable in safe mode.

This commit is contained in:
Parker Moore
2014-01-12 21:36:08 -08:00
parent 6b92126fd8
commit 4afe39e461
2 changed files with 13 additions and 7 deletions

View File

@@ -38,10 +38,14 @@ module Jekyll
)
end
def allow_caching?
!@config["safe"]
end
def sass_configs(content = "")
sass_build_configuration_options({
"syntax" => syntax_type_of_content(content),
"cache" => false,
"cache" => allow_caching?,
"load_paths" => [sass_dir_relative_to_site_source]
})
end