Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (about 16 years ago)
- Default Branch: master
- Last Pushed: 2008-10-14T03:42:36.000Z (about 16 years ago)
- Last Synced: 2024-10-14T21:52:56.422Z (3 months ago)
- Homepage:
- Size: 74.2 KB
- Stars: 5
- Watchers: 4
- 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: