{"id":18940315,"url":"https://github.com/donejs/done-element","last_synced_at":"2026-03-23T08:30:17.102Z","repository":{"id":57215082,"uuid":"89969005","full_name":"donejs/done-element","owner":"donejs","description":"Wrapper for can-element which conditionally loads polyfills for you.","archived":false,"fork":false,"pushed_at":"2019-06-20T16:54:33.000Z","size":11,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-01T08:46:40.160Z","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/donejs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-01T22:39:51.000Z","updated_at":"2017-05-02T15:54:23.000Z","dependencies_parsed_at":"2022-08-26T13:31:17.643Z","dependency_job_id":null,"html_url":"https://github.com/donejs/done-element","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/donejs%2Fdone-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donejs%2Fdone-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donejs%2Fdone-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donejs%2Fdone-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donejs","download_url":"https://codeload.github.com/donejs/done-element/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239939077,"owners_count":19721770,"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-11-08T12:21:54.938Z","updated_at":"2026-03-23T08:30:17.054Z","avatar_url":"https://github.com/donejs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# done-element\n\n[![Build Status](https://travis-ci.org/donejs/done-element.png?branch=master)](https://travis-ci.org/donejs/done-element)\n\nCustom elements for DoneJS projects. This works exactly the same as [can-element](https://github.com/canjs/can-element), but also loads polyfills if needed.\n\n```html\n\u003c!doctype html\u003e\n\n\u003ctitle\u003eHello world app\u003c/title\u003e\n\n\u003chello-world name=\"DoneJS\"\u003e\u003c/hello-world\u003e\n```\n\n```js\nimport mixinElement from \"done-element\";\nvar defineAttr from \"done-element/attributes\";\nimport define from \"can-define\";\n\nconst { Element } = minElement;\n\nconst view = stache(\"Hello {{name}}!\");\n\nclass HelloWorld extends Element {\n\tstatic get view() {\n\t\treturn view;\n\t}\n}\n\ndefine(HelloWorld.prototype, {\n\tname: {\n\t\tattribute: true,\n\t\tvalue() {\n\t\t\treturn \"world\";\n\t\t}\n\t}\n});\ndefineAttr(HelloWorld);\n\ncustomElements.define(\"hello-world\", HelloWorld);\n```\n\nWill create **Hello DoneJS!**.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonejs%2Fdone-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonejs%2Fdone-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonejs%2Fdone-element/lists"}