Added a framework accessor for the current framework.

This commit is contained in:
Chris Eppstein 2009-02-01 14:21:19 -08:00
parent 61de5ae125
commit 0ac537a81b

View File

@ -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