{"id":22505126,"url":"https://github.com/azer/render-loop","last_synced_at":"2025-08-03T11:32:41.795Z","repository":{"id":57353470,"uuid":"27370704","full_name":"azer/render-loop","owner":"azer","description":"Async DOM render loop with Virtual DOM diffing","archived":false,"fork":false,"pushed_at":"2015-05-21T20:56:54.000Z","size":248,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-28T09:34:11.647Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/azer.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-12-01T08:52:51.000Z","updated_at":"2019-07-15T17:34:41.000Z","dependencies_parsed_at":"2022-09-15T16:52:12.264Z","dependency_job_id":null,"html_url":"https://github.com/azer/render-loop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/azer/render-loop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Frender-loop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Frender-loop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Frender-loop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Frender-loop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azer","download_url":"https://codeload.github.com/azer/render-loop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Frender-loop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268352944,"owners_count":24236756,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-07T00:14:49.599Z","updated_at":"2025-08-03T11:32:41.498Z","avatar_url":"https://github.com/azer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## render-loop\n\nBuild HTML/DOM layouts that gets patched automatically with [Virtual DOM](http://npmjs.org/virtual-dom)\n\n## Install\n\n```bash\n$ npm install render-loop\n```\n\n## Usage\n\nA simple greeting layout:\n\n```js\nvar RenderLoop = require('render-loop')\n\nvar loop = RenderLoop('\u003ch1\u003e{message}, {name}\u003c/h1\u003e', function () {\n  loop.set({\n    message: 'good morning',\n    name: 'azer'\n  })\n})\n\nloop.html()\n// =\u003e \u003ch1\u003egood morning, azer\u003c/h1\u003e\n\nloop.insert(document.body)\n\nloop.set('message', 'good afternoon')\n\ndocument.body.innerHTML\n// =\u003e \u003ch1\u003egood afternoon, azer\u003c/h1\u003e\n```\n\nA list layout:\n\n```js\nvar prices = [\n  { name: 'melon', price: '$3.99/lb' },\n  { name: 'orange', price: '$2.49/lb' }\n]\n\nvar html = {\n  fruits: '\u003cul\u003e{fruits}\u003c/ul\u003e',\n  fruit: '\u003cli\u003e{name}: {price}\u003c/li\u003e'\n}\n\nvar loop = RenderLoop(html.fruits, function () {\n  loop.set('fruits', loop.each(html.fruit, prices));\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazer%2Frender-loop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazer%2Frender-loop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazer%2Frender-loop/lists"}