Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fnando/layout
Specify which layout will be rendered on Rails apps
https://github.com/fnando/layout
Last synced: 28 days ago
JSON representation
Specify which layout will be rendered on Rails apps
- Host: GitHub
- URL: https://github.com/fnando/layout
- Owner: fnando
- License: mit
- Created: 2010-11-06T16:01:57.000Z (about 14 years ago)
- Default Branch: main
- Last Pushed: 2020-09-24T20:21:54.000Z (about 4 years ago)
- Last Synced: 2024-10-06T04:25:40.092Z (about 1 month ago)
- Language: Ruby
- Homepage:
- Size: 21.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# Layout
Layout is plugin that allow to choose the layout with options like `:except` and
`:only`.## Instalation
gem install layout
## Usage
Add the method call `set_layout` to your controller.
```ruby
class PagesController < ApplicationController
set_layout "site", only: %w(faq feedback)
set_layout "custom", except: %w(faq feedback)
end
```## Maintainer
- Nando Vieira (http://nandovieira.com)
## License
(The MIT License)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the 'Software'), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.