Readme.markdown in crystalmeta-0.9.0 vs Readme.markdown in crystalmeta-0.9.1

- old
+ new

@@ -1,6 +1,6 @@ -**Crystalmeta helps you control meta tags through I18n and/or manually. It plays well with [OpenGraph](http://ogp.me/).** +**Crystalmeta helps you control meta tags through I18n and/or manually. It plays well with [OpenGraph](http://ogp.me/) and [Twitter Cards](https://dev.twitter.com/docs/cards).** It gives you 3 helpers: **1.** `meta(options)` — available in both controller & views. @@ -30,11 +30,11 @@ **3.** `meta_tags(pattern = //)` Returns all meta tags which names match the pattern. Under the hoods it uses the three-qual to pattern match (like in `Enumerable#grep`). ```erb -<%= meta_tags %> +<%= meta_tags /^og:/ %> ``` displays in this case: ```html @@ -100,14 +100,16 @@ ## Interpolation You can interpolate meta tags like this: ```erb -<% meta({ +<% +meta({ "og:title" => "The Rock (1996)", "og:site_name" => "IMDb", "head" => "%{og:title} — %{og:site_name}" -}) %> +}) +%> ``` `meta_tag :head` will return `"The Rock (1996) — IMDb"`. Please use this feature with care to avoid [SystemStackError](http://ruby-doc.org/core-1.9.3/SystemStackError.html).