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]
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
Compass.configuration.send(dir)
end
@ -91,6 +91,10 @@ module Compass
"#{javascripts_dir}/#{to}"
end
installer :font do |to|
"#{fonts_dir}/#{to}"
end
installer :file do |to|
"#{pattern_name_as_dir}#{to}"
end

View File

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