Allow extensions to deliver fonts into projects.

This commit is contained in:
Chris Eppstein 2009-11-28 11:04:03 -08:00
parent d504650eda
commit eec390ea37
2 changed files with 6 additions and 1 deletions

View File

@ -16,7 +16,7 @@ module Compass
self.logger = options[:logger] self.logger = options[:logger]
end end
[:css_dir, :sass_dir, :images_dir, :javascripts_dir, :http_stylesheets_path].each do |dir| [:css_dir, :sass_dir, :images_dir, :javascripts_dir, :http_stylesheets_path, :fonts_dir].each do |dir|
define_method dir do define_method dir do
Compass.configuration.send(dir) Compass.configuration.send(dir)
end end
@ -91,6 +91,10 @@ module Compass
"#{javascripts_dir}/#{to}" "#{javascripts_dir}/#{to}"
end end
installer :font do |to|
"#{fonts_dir}/#{to}"
end
installer :file do |to| installer :file do |to|
"#{pattern_name_as_dir}#{to}" "#{pattern_name_as_dir}#{to}"
end end

View File

@ -37,6 +37,7 @@ module Compass
type :stylesheet type :stylesheet
type :image type :image
type :javascript type :javascript
type :font
type :file type :file
type :html type :html