README.md in bootstrap_flash_messages-0.0.4 vs README.md in bootstrap_flash_messages-0.0.5
- old
+ new
@@ -1,8 +1,8 @@
# bootstrap_flash_messages
- version 0.0.4
+ version 0.0.5
Robin Brouwer
45north
Bootstrap alerts and Rails flash messages combined in one easy-to-use gem.
@@ -20,10 +20,15 @@
And that's it!
## Changes
+Version 0.0.5 changes (24/09/2012):
+
+ - Added HTML escape option for flash_messages helper (:html).
+ - Also added option to convert new-lines to br-tags (:convert_newlines).
+
Version 0.0.4 changes (03/09/2012):
- Namespaced Controllers can be accessed by nesting your locales.
# Old
@@ -119,9 +124,17 @@
<%= flash_messages(:close, :block) %>
Want a heading? Add `:heading`. The headings inside flash.en.yml are used for the headings.
<%= flash_messages(:close, :block, :heading) %>
+
+Need to display HTML inside the flash messages? Use the `:html` option.
+
+ <%= flash_messages(:html) %>
+
+It's also possible to convert new-lines (\n) into br-tags using the `:convert_newlines` option. This option also unescapes all other HTML, so use it with care.
+
+ <%= flash_messages(:convert_newlines) %>
And that's it! Have fun. :)
## Interpolation
\ No newline at end of file