{"id":15503236,"url":"https://github.com/johno/ember-dynamic-render","last_synced_at":"2025-09-11T02:06:47.888Z","repository":{"id":23207926,"uuid":"26564779","full_name":"johno/ember-dynamic-render","owner":"johno","description":"[DEPRECATED] No longer under development as Ember now has a `component` helper.","archived":false,"fork":false,"pushed_at":"2015-01-27T07:11:17.000Z","size":160,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T04:41:42.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mojombo/semver.org","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-13T01:32:01.000Z","updated_at":"2015-10-26T23:12:58.000Z","dependencies_parsed_at":"2022-08-17T19:35:30.335Z","dependency_job_id":null,"html_url":"https://github.com/johno/ember-dynamic-render","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/johno%2Fember-dynamic-render","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-dynamic-render/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-dynamic-render/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-dynamic-render/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johno","download_url":"https://codeload.github.com/johno/ember-dynamic-render/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244498514,"owners_count":20462344,"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":"2024-10-02T09:12:34.230Z","updated_at":"2025-03-19T20:11:12.286Z","avatar_url":"https://github.com/johno.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dynamic Render\n\n_Currently under development, and is intended to be a PoC._\n\nThis is an [ember-cli](http://www.ember-cli.com/) addon for dynamic rendering. This is intended\nto allow templates to be rendered based off of variables, objects, and arrays similar to Rails\nfunctionality.\n\n### Proposed API\n\n###### Array rendering\n\n```hbs\n{{dynamic-render foos}} {{! render 'foo' foo for each object inferred by model name.}}\n```\n\n###### Object rendering\n\n```hbs\n{{dynamic-render bar}} {{! render 'bar' bar for the object inferred by model name.}}\n```\n\n###### Rendering from a variable\n\n```hbs\n{{dynamic-render myVariable}} {{! render 'myVariableValue' }}\n```\n\n## Installation\n\n```\nnpm i --save-dev ember-dynamic-render\n```\n\n## Usage\n\nThis allows you to specify dynamic templates to render:\n\n```hbs\n{{dynamic-render someVariable object }}\n```\n\nIt will also infer the template if one isn't specified by the model name:\n\n```hbs\n{{dynamic-render object}} {{! # =\u003e will render object.hbs }}\n```\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`\n\n### Building\n\n* `ember build`\n\n## Acknowledgements\n\nAdapted from \u003chttps://github.com/minutebase/ember-dynamic-component\u003e.\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nCrafted with \u003c3 by [John Otander](http://johnotander.com) ([@4lpine](https://twitter.com/4lpine)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fember-dynamic-render","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohno%2Fember-dynamic-render","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fember-dynamic-render/lists"}