class Haml::AttributeCompiler

def compile_class!(temple, key, values)

def compile_class!(temple, key, values)
  build_code = attribute_builder(:class, values)
  if values.all? { |type, exp| type == :static || Temple::StaticAnalyzer.static?(exp) }
    temple << [:html, :attr, key, [:static, eval(build_code).to_s]]
  else
    temple << [:html, :attr, key, [:dynamic, build_code]]
  end
end