https://github.com/technicalpickles/content_given
An ActionView helper for determining if content_for
https://github.com/technicalpickles/content_given
Last synced: about 1 month ago
JSON representation
An ActionView helper for determining if content_for
- Host: GitHub
- URL: https://github.com/technicalpickles/content_given
- Owner: technicalpickles
- License: mit
- Created: 2008-10-14T03:42:18.000Z (over 17 years ago)
- Default Branch: master
- Last Pushed: 2008-10-14T03:42:36.000Z (over 17 years ago)
- Last Synced: 2026-04-07T21:42:58.794Z (3 months ago)
- Homepage:
- Size: 74.2 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: MIT-LICENSE
Awesome Lists containing this project
README
# ContentGiven
Adds a very small helper to your views for determining if `content_for :foo` was used.
This means you don't always have to render the containing markup around `yield :foo`.
## Example
### Before content\_given: