Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mark that the gem is obsolete

  • Loading branch information...
commit 74e665e713726094b7f88e376e77a981784f9631 1 parent e586a10
@foca authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 README.rdoc
View
12 README.rdoc 100644 → 100755
@@ -1,3 +1,11 @@
+= This project is no longer maintained. See http://github.com/sinatra/sinatra-contrib
+
+Sinatra::Contrib is a project maintained by the sinatra core team that packages
+several small widely used extensions, such as content_for. Please install that
+as that is actively maintained and compatibility is ensured with all future
+versions of sinatra.
+
+
= ContentFor
Small extension for the Sinatra[http://sinatrarb.com] web framework
@@ -6,7 +14,7 @@ that allows you to use the following helpers in your views:
<% content_for :some_key do %>
<chunk of="html">...</chunk>
<% end %>
-
+
<% yield_content :some_key %>
This allows you to capture blocks inside views to be rendered later
@@ -20,7 +28,7 @@ following:
%chunk{ :of => "html" } ...
= yield_content :some_key
-
+
<b>Note</b> that with ERB <tt>yield_content</tt> is called <b>without</b>
an '=' block (<tt><%= %></tt>), but with Haml it uses <tt>= yield_content</tt>.
Please sign in to comment.
Something went wrong with that request. Please try again.