fix some bugs.

This commit is contained in:
Chris Eppstein 2010-01-22 11:41:08 -08:00
parent d7a9864ee2
commit ec844d2148
2 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,11 @@ def body_class(item)
end end
def body_id(item) def body_id(item)
item.identifier.chop[1..-1].gsub(/\/|_/, "-") if id = item.identifier.chop[1..-1]
id.gsub(/\/|_/, "-")
else
nil
end
end end
def body_attributes(item) def body_attributes(item)

View File

@ -1,3 +1,4 @@
require 'sass'
module Sass module Sass
module Tree module Tree
class VariableNode < Node class VariableNode < Node