{"id":15539132,"url":"https://github.com/patricklx/ember-template-modifier-import","last_synced_at":"2025-04-06T01:27:29.473Z","repository":{"id":83767092,"uuid":"293572991","full_name":"patricklx/ember-template-modifier-import","owner":"patricklx","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-11T10:26:28.000Z","size":232,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-09T12:46:24.378Z","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/patricklx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2020-09-07T16:03:33.000Z","updated_at":"2020-09-11T10:26:31.000Z","dependencies_parsed_at":"2023-03-08T20:15:18.366Z","dependency_job_id":null,"html_url":"https://github.com/patricklx/ember-template-modifier-import","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":"0.46153846153846156","last_synced_commit":"b721c4ed85c21a7f1d9b172ff2a19a60cec2b9b5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricklx%2Fember-template-modifier-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricklx%2Fember-template-modifier-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricklx%2Fember-template-modifier-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricklx%2Fember-template-modifier-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patricklx","download_url":"https://codeload.github.com/patricklx/ember-template-modifier-import/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423449,"owners_count":20936620,"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-02T12:09:19.797Z","updated_at":"2025-04-06T01:27:29.445Z","avatar_url":"https://github.com/patricklx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ember-template-modifier-import\n==============================================================================\n\nforked from https://github.com/crashco/ember-template-component-import and changed to allow modifier imports\nThis is to be used alongside https://github.com/crashco/ember-template-component-import\n\nThis addon allows you to use import-style syntax to create local bindings to\na modifier within a template file.\n\n* More concise modifier invocation while making it explicit where it comes from\n* No hyphens needed!\n* Relative imports!\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-template-modifier-import\n```\n\n\nUsage\n------------------------------------------------------------------------------\n\nUse the same kind of import syntax you are familiar with from Javascript:\n\n```hbs\n{{import mymodifier from 'ui/modifier'}}\n\n{{mymodifier 'a'}}\n\n{{import modifier as asmodifier from \"ui/modifiers\" }}\n{{import a as amodifier from \"ui/modifiers\" }}\n{{import \"* as modifiers\" from \"u/modifiersi\" }}\n{{import \"a, b\" from \"ui/modifiers\" }}\n{{import \"a as x, b as y\" from \"ui/modifiers\" }}\n{{import \"a as z, modifier\" from \"ui/modifiers\" }}\n```\n\nThe modifier is looked up from the given string using a direct lookup\npattern.\n\nMotivation\n------------------------------------------------------------------------------\n\n[ember-template-component-import](https://github.com/crashco/ember-template-component-import)\nalready gives us import for components, but I really miss the modifier imports.\nSo I went ahead and added this functionality :)\n\n\nBut what about Module Unification?\n------------------------------------------------------------------------------\n\nOnce Module Unification lands fully, this addon will be largely obsolete. MU\nprovides all these benefits and more.\n\nSo on the one hand, your templates will start to look _something kinda like_\nMU a little sooner, which is nice.\n\nBut be warned - any official tooling to codemod templates into a new MU world\nlikely won't support this addon. So weigh the pros and cons carefully before\nwidely adopting this addon.\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatricklx%2Fember-template-modifier-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatricklx%2Fember-template-modifier-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatricklx%2Fember-template-modifier-import/lists"}