module Microformats::Helpers
# FIXME: Figure out how to make this non-Rails specific
# i.e. not rely on using concat
def vcard(&block)
concat "
\n"
block.call(Microformats::Vcard.new)
concat "
\n"
end
# FIXME: Figure out how to make this non-Rails specific
# i.e. not rely on using concat
def vcard_address(opts = {}, &block)
address = Microformats::Address.new
type = opts[:type] ? address.content_tag(:span, opts[:type], :class => 'type') : nil
concat "\n"
concat type if type
block.call(address)
concat "
\n"
end
end