{"id":13784263,"url":"https://github.com/derbyjs/d-codemirror","last_synced_at":"2025-04-12T01:31:11.067Z","repository":{"id":16440361,"uuid":"19191990","full_name":"derbyjs/d-codemirror","owner":"derbyjs","description":"derby component for live-bound CodeMirror","archived":false,"fork":false,"pushed_at":"2018-07-07T18:35:40.000Z","size":14,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-25T21:22:54.760Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derbyjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-27T00:23:03.000Z","updated_at":"2018-07-07T18:35:38.000Z","dependencies_parsed_at":"2022-09-17T05:51:57.389Z","dependency_job_id":null,"html_url":"https://github.com/derbyjs/d-codemirror","commit_stats":null,"previous_names":["codeparty/d-codemirror"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derbyjs%2Fd-codemirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derbyjs%2Fd-codemirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derbyjs%2Fd-codemirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derbyjs%2Fd-codemirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derbyjs","download_url":"https://codeload.github.com/derbyjs/d-codemirror/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248504220,"owners_count":21115135,"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-08-03T19:00:38.772Z","updated_at":"2025-04-12T01:31:10.772Z","avatar_url":"https://github.com/derbyjs.png","language":"JavaScript","readme":"d-codemirror\n==================\n\nExample CodeMirror Derby component.\n\n# Usage\n[Example usage](http://github.com/derbyjs/derby-examples/tree/master/codemirror)\n\n## In your template\n```\n\u003cHead:\u003e\n  \u003cview name=\"d-codemirror:includes\" static=\"/cm\"\u003e\u003c/view\u003e\n\u003cBody:\u003e\n  \u003cview name=\"d-codemirror\" text={{_page.text}} options=\"{{ { tabSize: 2 } }}\"\u003e\u003c/view\u003e\n```\n\n## Your data\n```\nmodel.set(\"_page.text\", \"Hello World\");\n```\n\n## Your CodeMirror\n\nYou can serve the CodeMirror files from your public folder. If you install them through NPM\nyou will have to add an extra static route to your Express app:\n\n````\nvar expressApp = express()\n  (…)\n  .use('/cm', serveStatic(process.cwd() + '/node_modules/d-codemirror/node_modules/codemirror/'))\n  (…)\n````\n\nSee the [derby-examples](http://github.com/derbyjs/derby-examples/tree/master/codemirror)\nrepo for an example using real-time data subscriptions to power multi-player editing.\n","funding_links":[],"categories":["Components"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderbyjs%2Fd-codemirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderbyjs%2Fd-codemirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderbyjs%2Fd-codemirror/lists"}