garybernhardt/raptor — pull request #51 by tcrayford (2012-04-19 11:19:51+00:00)
Title: Content for

This adds `content_for` and `yield_content_for`.

I thought about adding a `NoContentForError` for when users call `yield_content_for` with a name without content in it. However, this seemed like it was going to be annoying. This sort of contradicts with how I usually think about design (raise errors instead of doing nothing silently), but it fits with how content_for is used most of the time in practice (to set

and other tags in the <head>).