lib/tophat/opengraph.rb in tophat-1.3.0 vs lib/tophat/opengraph.rb in tophat-1.3.1

- old
+ new

@@ -50,9 +50,15 @@ @graph_data[method] = args.shift end end + def html_with_opengraph + '<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:og="http://ogp.me/ns#" + xmlns:fb="https://www.facebook.com/2008/fbml">' + end + def opengraph(options=nil, &block) if options.kind_of? Hash @tophat_open_graph_defaults = options end if block_given?