Handle pass-thru @if nodes.
This commit is contained in:
parent
658e543c0d
commit
b9af766886
@ -31,7 +31,10 @@ module Sass
|
|||||||
end
|
end
|
||||||
class IfNode < Node
|
class IfNode < Node
|
||||||
def to_sass
|
def to_sass
|
||||||
sass_str = %Q{@if #{@expr.inspect unless @expr.nil?}
|
if @expr.nil?
|
||||||
|
children_to_sass
|
||||||
|
else
|
||||||
|
sass_str = %Q{@if #{@expr.to_sass}
|
||||||
- #{children_to_sass}
|
- #{children_to_sass}
|
||||||
-}.gsub(/^\s+-/,'')
|
-}.gsub(/^\s+-/,'')
|
||||||
if @else
|
if @else
|
||||||
@ -42,6 +45,7 @@ module Sass
|
|||||||
sass_str
|
sass_str
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
class DebugNode < Node
|
class DebugNode < Node
|
||||||
def to_sass
|
def to_sass
|
||||||
""
|
""
|
||||||
|
Loading…
Reference in New Issue
Block a user