{"id":26068347,"url":"https://github.com/minutebase/ember-render-stack","last_synced_at":"2025-04-11T18:07:54.639Z","repository":{"id":20428823,"uuid":"23705433","full_name":"minutebase/ember-render-stack","owner":"minutebase","description":"Ember addon to render a stack of outlets","archived":false,"fork":false,"pushed_at":"2016-12-31T13:27:53.000Z","size":148,"stargazers_count":14,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T14:03:47.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/minutebase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-05T14:16:24.000Z","updated_at":"2021-05-28T19:43:03.000Z","dependencies_parsed_at":"2022-07-31T19:18:04.529Z","dependency_job_id":null,"html_url":"https://github.com/minutebase/ember-render-stack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-render-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-render-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-render-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-render-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minutebase","download_url":"https://codeload.github.com/minutebase/ember-render-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247903370,"owners_count":21015640,"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":[],"created_at":"2025-03-08T22:25:17.792Z","updated_at":"2025-04-11T18:07:54.526Z","avatar_url":"https://github.com/minutebase.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-render-stack\n\nHelps render a stack to outlets.\n\nFor example, you've got a navigation section in the application template into which you want to render\ncontextual information.\n\n```handlebars\n\u003cdiv\u003e\n  {{outlet \"navigation\"}}\n\u003c/div\u003e\n\u003cdiv\u003e\n  {{outlet}}\n\u003c/div\u003e\n```\n\nYou could achieve this with `Route#render` but will quickly run into the problem that exiting a route\nwill not re-display content from a parent route.\n\nEg. `/foo` renders to `navigation` as does `/foo/bar/baz`, but navigating to `/foo/bar` from `/foo/bar/baz`\nwill end up displaying nothing instead of re-rendering `/foo`'s navigation.\n\nThat's what this addon solves.\n\n## Installation\n\nInstall as an Ember CLI addon:\n\n```\nnpm install --save-dev ember-render-stack\n```\n\n## Usage\n\nFirst mixin the `RenderMixin` to your `ApplicationRoute`:\n\n```javascript\nimport Ember from 'ember';\nimport { StackRenderMixin } from 'ember-render-stack';\n\nexport default Ember.Route.extend(StackRenderMixin);\n```\n\nNext add an outlet you want to manage to a layout, eg your `application.hbs`:\n\n```handlebars\n\u003cdiv\u003e\n  {{outlet \"navigation\"}}\n\u003c/div\u003e\n\u003cdiv\u003e\n  {{outlet}}\n\u003c/div\u003e\n```\n\nFinally, mixin the `RouteMixin` to each route you want to render into the stack and call\n`renderToStack` for each outlet:\n\n```javascript\nimport Ember from 'ember';\nimport { StackRouteMixin } from 'ember-render-stack';\n\nexport default Ember.Route.extend(StackRouteMixin, {\n  renderStack: function() {\n    this.renderToStack('navigation/some-template', {\n      into:   'application',\n      outlet: 'navigation'\n    });\n  }\n});\n```\n\n`renderToStack` takes the same options as the standard [Route#render](http://emberjs.com/api/classes/Ember.Route.html#method_render)\nso you can simply replace calls to `render` with `renderToStack`.\n\n## Development\n\n### Installation\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n\n### Running\n\n* `ember server`\n* Visit your app at http://localhost:4200.\n\n### Running Tests\n\n* `ember test`\n* `ember test --server`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminutebase%2Fember-render-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminutebase%2Fember-render-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminutebase%2Fember-render-stack/lists"}