class Haml::AttributeCompiler

def compile_id!(temple, key, values)

def compile_id!(temple, key, values)
  build_code = attribute_builder(:id, 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