README.textile in it-0.2.0 vs README.textile in it-0.2.1
- old
+ new
@@ -50,9 +50,22 @@
<pre><code>en:
copy: "Want to contact %{user}%? %{link:send %{b:%{user} a message}}!"</code></pre>
<pre><code><%=it "copy", link: "mailto:igel@igels.net", user: 'iGEL', :b => It.tag(:b) %></code></pre>
+If you would like to use the same translations in your html and plain text mails, you will like the +It.plain+ method:
+<pre><code>en:
+ mail_copy: "Do you like %{link:Rails}?"</code></pre>
+
+<pre><code>HTML mail:
+<%= it "mail_copy", link: It.link("http://www.rubyonrails.org/") %>
+
+Plain mail:
+<%= it "mail_copy", link: It.plain("%s[http://www.rubyonrails.org/]") %>
+</code></pre>
+
+The +%s+ will be replaced with the label, in the example with Rails. You could provide any other string containing +%s+. The default is just +%s+, so it will return only the label itself.
+
h2. isit18.com?
Well, the specs pass on 1.8.7, but I never tried it in a real app. Report any issues on "github":https://github.com/iGEL/it/issues
h2. Abandoned & outdated?
\ No newline at end of file