class Temple::HTML::Fast

def compile_attribute(name, value)

def compile_attribute(name, value)
  if empty_exp?(value)
    [:multi]
  elsif contains_static?(value)
    attribute(name, value)
  else
    tmp = tmp_var(:htmlattr)
    [:multi,
     [:capture, tmp, value],
     [:block, "unless #{tmp}.empty?"],
       attribute(name, [:dynamic, tmp]),
     [:block, 'end']]
  end
end