Allow extensions to deliver fonts into projects.
This commit is contained in:
parent
d504650eda
commit
eec390ea37
@ -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
|
||||
|
@ -37,6 +37,7 @@ module Compass
|
||||
type :stylesheet
|
||||
type :image
|
||||
type :javascript
|
||||
type :font
|
||||
type :file
|
||||
type :html
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user