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]
|
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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user