def append_to_response( response, context )
take_value(:name)
take_bool(:enabled)
take_bool(:escape)
take_value(:string)
if @values[:string] then
@values[:string] = escaped_string(@values[:string], @values[:escape])
end
unless @values[:enabled] then
if @values[:string] then
response.content << @values[:string]
elsif empty? == false then
@node.append_to_response(response, context)
end
return
end
attrs = {}
attrs.update(optional_attributes())
tag = HTMLTag.a(attrs, other_attribute())
set_href(tag, context)
response.content << tag.open_tag
if empty? == false then
@node.append_to_response(response, context)
elsif @values[:string] then
response.content << @values[:string]
end
response.content << tag.close_tag
end