lib/rdfa/base.rb in rdfa-0.0.6 vs lib/rdfa/base.rb in rdfa-0.0.7
- old
+ new
@@ -13,9 +13,13 @@
else
rdfa_write :span, object, {:property => predicate, :about => subject_uri}
end
end
+ def rdfa_link_to(predicate, name, options = {}, html_options = {}, *parameters_for_method_reference)
+ link_to(name, options, (html_options.merge :rel => predicate), *parameters_for_method_reference)
+ end
+
def rdfa_write_block tag, rdfa_options = {} , &block
content = capture(&block)
concat(rdfa_write(tag, content, rdfa_options), block.binding)
end
\ No newline at end of file