Microformats::Helper
Description
Microformats helper that supports nesting.
First usable iteration is VERSION 0.2.6
Installation
Add this line to your application's Gemfile:
gem 'microformats-helper'
And then execute:
$ bundle
Or install it yourself as:
$ gem install microformats-helper
Usage
generate_microformats(container,props,child)
parameter examples:
container = { itemprop: nil, itemtype: "Product" }
props = {
name: { value: "Executive Anvil"},
brand: { value: "ACME" },
category: { content: "Hardware > Tools > Anvils", value: "Anvils"},
description: { value: "Sleeker than ACME's Classic Anvil..." }
}
child = generate_microformats(child_container,child_props)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request