class Haml::Filters::Css

def compile(node)

def compile(node)
  case @format
  when :xhtml
    compile_xhtml(node)
  else
    compile_html(node)
  end
end

def compile_html(node)

def compile_html(node)
  temple = [:multi]
  temple << [:static, "<style>\n"]
  compile_text!(temple, node, '  ')
  temple << [:static, "\n</style>"]
  temple
end

def compile_xhtml(node)

def compile_xhtml(node)
  temple = [:multi]
  temple << [:static, "<style type='text/css'>\n  /*<![CDATA[*/\n"]
  compile_text!(temple, node, '    ')
  temple << [:static, "\n  /*]]>*/\n</style>"]
  temple
end