app/views/pages/show.html.erb in shakespeare-0.2.2 vs app/views/pages/show.html.erb in shakespeare-0.3.0
- old
+ new
@@ -1,3 +1,7 @@
-<h2><%= @page.title %></h2>
-
-<%= @page.content %>
+<h2><%= @page.title %></h2>
+
+<%- if Shakespeare::Settings.format_method -%>
+ <%= send(Shakespeare::Settings.format_method, @page.content) %>
+<%- else -%>
+ <%= @page.content %>
+<%- end -%>
\ No newline at end of file