lib/sinatra/content_for.rb in sinatra-contrib-1.3.2 vs lib/sinatra/content_for.rb in sinatra-contrib-1.4.0
- old
+ new
@@ -76,11 +76,11 @@
# Your blocks can also receive values, which are passed to them
# by <tt>yield_content</tt>
def content_for(key, &block)
content_blocks[key.to_sym] << capture_later(&block)
end
-
+
# Check if a block of content with the given key was defined. For
# example:
#
# <% content_for :head do %>
# <script type="text/javascript" src="/foo.js"></script>
@@ -98,10 +98,10 @@
# <head>
# <title>Example</title>
# <%= yield_content :head %>
# </head>
#
- # Would render everything you declared with <tt>content_for
+ # Would render everything you declared with <tt>content_for
# :head</tt> before closing the <tt><head></tt> tag.
#
# You can also pass values to the content blocks by passing them
# as arguments after the key:
#