lib/volt/server/html_parser/attribute_scope.rb
# Add an attribute binding on the tag, bind directly to the getter in the binding
Add an attribute binding on the tag, bind directly to the getter in the binding
Add an attribute binding on the tag bind directly to the getter in the binding
def add_single_attribute(id, attribute_name, parts)
    getter = parts[0][1..-2]
    save_binding(id, "lambda { |__p, __t, __c, __id| AttributeBinding.new(__p, __t, __c, __id, #{attribute_name.inspect}, Proc.new { #{getter} }) }")
  end
def add_single_attribute ( id , attribute_name , parts ) getter = parts [ 0 ] [ 1 .. - 2 ] save_binding ( id , "lambda { |__p, __t, __c, __id| AttributeBinding.new(__p, __t, __c, __id, #{attribute_name.inspect}, Proc.new { #{getter} }) }" ) end
Add an attribute binding on the tag, bind directly to the getter in the binding
Add an attribute binding on the tag bind directly to the getter in the binding
id
attribute_name
parts