test/rails/app/helpers/application_helper.rb in slim-2.0.1 vs test/rails/app/helpers/application_helper.rb in slim-2.0.2
- old
+ new
@@ -1,3 +1,6 @@
module ApplicationHelper
+ def headline(&block)
+ "<h1>#{capture(&block)}</h1>".html_safe
+ end
end