desmelled the binding class
This commit is contained in:
parent
98775ea1ec
commit
16ff623732
@ -105,7 +105,7 @@ module Compass
|
|||||||
|
|
||||||
# Generates the Sass for this sprite file
|
# Generates the Sass for this sprite file
|
||||||
def self.content_for_images(uri, name, skip_overrides = false)
|
def self.content_for_images(uri, name, skip_overrides = false)
|
||||||
binder = Compass::Sprites::Binding.new(:name => name, :uri => uri, :skip_overrides => skip_overrides)
|
binder = Compass::Sprites::Binding.new(:name => name, :uri => uri, :skip_overrides => skip_overrides, :sprite_names => sprite_names(uri))
|
||||||
CONTENT_TEMPLATE.result(binder.get_binding)
|
CONTENT_TEMPLATE.result(binder.get_binding)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -2,10 +2,6 @@ require 'ostruct'
|
|||||||
module Compass
|
module Compass
|
||||||
module Sprites
|
module Sprites
|
||||||
class Binding < OpenStruct
|
class Binding < OpenStruct
|
||||||
|
|
||||||
def sprite_names
|
|
||||||
@sprite_names ||= Compass::SpriteImporter.sprite_names(uri)
|
|
||||||
end
|
|
||||||
|
|
||||||
def get_binding
|
def get_binding
|
||||||
binding
|
binding
|
||||||
|
Loading…
Reference in New Issue
Block a user