Sha256: 6f8f94548c5011a4d0a5e97e951f8ea1ab44626c146b01ae58006d4bea33a36d
Contents?: true
Size: 753 Bytes
Versions: 1
Compression:
Stored size: 753 Bytes
Contents
module Microformats::Helpers # FIXME: Figure out how to make this non-Rails specific # i.e. not rely on using concat def vcard(&block) concat "<div class='vcard' itemscope='itemscope' itemtype='http://data-vocabulary.org/Person'>\n" block.call(Microformats::Vcard.new) concat "</div>\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 "<div class='adr' itemscope='itemscope' itemtype='http://data-vocabulary.org/Address'>\n" concat type if type block.call(address) concat "</div>\n" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
microformats-0.1 | lib/helpers.rb |