{"id":15064581,"url":"https://github.com/westonganger/rails_nestable_layouts","last_synced_at":"2025-04-10T12:23:06.236Z","repository":{"id":56890645,"uuid":"82429622","full_name":"westonganger/rails_nestable_layouts","owner":"westonganger","description":"Rails Nestable Layouts - Dead simple nested layouts for Rails","archived":false,"fork":false,"pushed_at":"2024-12-30T23:14:30.000Z","size":23,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T00:19:16.403Z","etag":null,"topics":["layout","layouts","nestable","nestable-layouts","nested-layouts","rails","rails-nested-layouts"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/westonganger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-19T02:22:29.000Z","updated_at":"2024-12-30T23:14:33.000Z","dependencies_parsed_at":"2023-12-26T10:23:16.987Z","dependency_job_id":"61b33c8b-d5f4-49f1-9272-5d3c1ef13874","html_url":"https://github.com/westonganger/rails_nestable_layouts","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":"0.33333333333333337","last_synced_commit":"4e8d79da17cc09d5b43457b2cc00e83fe6939f9a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Frails_nestable_layouts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Frails_nestable_layouts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Frails_nestable_layouts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Frails_nestable_layouts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/westonganger","download_url":"https://codeload.github.com/westonganger/rails_nestable_layouts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232292185,"owners_count":18500594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["layout","layouts","nestable","nestable-layouts","nested-layouts","rails","rails-nested-layouts"],"created_at":"2024-09-25T00:21:21.098Z","updated_at":"2025-04-10T12:23:06.217Z","avatar_url":"https://github.com/westonganger.png","language":"Ruby","funding_links":["https://ko-fi.com/A5071NK'"],"categories":[],"sub_categories":[],"readme":"# Rails Nestable Layouts\n\u003ca href=\"https://badge.fury.io/rb/rails_nested_layouts\" target=\"_blank\"\u003e\u003cimg height=\"21\" style='border:0px;height:21px;' border='0' src=\"https://badge.fury.io/rb/rails_nested_layouts.svg\" alt=\"Gem Version\"\u003e\u003c/a\u003e\n\u003ca href='https://github.com/westonganger/rails_nested_layouts/actions' target='_blank'\u003e\u003cimg src=\"https://github.com/westonganger/rails_nested_layouts/actions/workflows/test.yml/badge.svg?branch=master\" style=\"max-width:100%;\" height='21' style='border:0px;height:21px;' border='0' alt=\"CI Status\"\u003e\u003c/a\u003e\n\u003ca href='https://rubygems.org/gems/rails_nestable_layouts' target='_blank'\u003e\u003cimg height='21' style='border:0px;height:21px;' src='https://img.shields.io/gem/dt/rails_nestable_layouts?color=brightgreen\u0026label=Rubygems%20Downloads' border='0' alt='RubyGems Downloads' /\u003e\u003c/a\u003e\n\u003ca href='https://ko-fi.com/A5071NK' target='_blank'\u003e\u003cimg height='22' style='border:0px;height:22px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee' /\u003e\u003c/a\u003e\n\nDead simple nested layouts support for Rails. Does not monkey patch anything. Can nest as many layouts as desired.\n\n\n## Install\n\n```ruby\ngem 'rails_nestable_layouts'\n```\n\n\n## Usage\n\n### Your Controller\n```ruby\n# main layout, this line is not necessary. Note nested_layouts does not override the main layout.\nlayout :application\n\n# accepts the same options as before_action/before_filter\nnested_layouts 'layouts/secondary_layout', 'posts/layout', except: [:index]\n```\n\n### Main Layout\n```erb\n\u003chtml\u003e\n  \u003chead\u003e\u003c/head\u003e\n  \u003cbody\u003e\n    \u003ch1\u003eMy Main Layout\u003c/h1\u003e\n\n    \u003c!-- this will call the first nested layout , will fallback to normal functionality if no nested layouts. --\u003e\n    \u003c%= yield_nested %\u003e\n  \u003c/body\u003e\n  \u003cfooter\u003e\u003c/footer\u003e\n\u003c/html\u003e\n```\n\n### Nested Layout(s)\n```erb\n\u003ch2\u003eMy Nested Layout\u003c/h2\u003e\n\n\u003c%= yield_nested %\u003e # this will call the next nested layout or the requested template if no more nested layouts.\n```\n\n\u003cbr\u003e\n\n# Credits\n\nCreated by Weston Ganger - @westonganger\n\n\u003ca href='https://ko-fi.com/A5071NK' target='_blank'\u003e\u003cimg height='32' style='border:0px;height:32px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee' /\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonganger%2Frails_nestable_layouts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwestonganger%2Frails_nestable_layouts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonganger%2Frails_nestable_layouts/lists"}