From 0ac537a81b7c4cc6eca78e5353ad9a21d486b8bd Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 1 Feb 2009 14:21:19 -0800 Subject: [PATCH] Added a framework accessor for the current framework. --- lib/compass/commands/base.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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