diff --git a/lib/compass/commands/base.rb b/lib/compass/commands/base.rb index aff5127d..259a50a9 100644 --- a/lib/compass/commands/base.rb +++ b/lib/compass/commands/base.rb @@ -75,7 +75,11 @@ module Compass # returns the path to the templates directory and caches it def templates_directory - @templates_directory ||= Compass::Frameworks[options[:framework]].templates_directory + @templates_directory ||= framework.templates_directory + end + + def framework + Compass::Frameworks[options[:framework]] end # Write paths like we're on unix and then fix it