{"id":22505171,"url":"https://github.com/azer/virtual-glue","last_synced_at":"2025-08-03T11:32:49.860Z","repository":{"id":23984255,"uuid":"27367419","full_name":"azer/virtual-glue","owner":"azer","description":"Render HTML with Hyperglue and VirtualDOM","archived":false,"fork":false,"pushed_at":"2014-12-01T07:43:15.000Z","size":152,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-22T14:08:32.366Z","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-01T07:14:28.000Z","updated_at":"2018-02-16T19:42:22.000Z","dependencies_parsed_at":"2022-09-04T10:02:08.197Z","dependency_job_id":null,"html_url":"https://github.com/azer/virtual-glue","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/azer%2Fvirtual-glue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Fvirtual-glue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Fvirtual-glue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Fvirtual-glue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azer","download_url":"https://codeload.github.com/azer/virtual-glue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228540833,"owners_count":17934031,"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-12-07T00:15:40.247Z","updated_at":"2024-12-07T00:15:41.218Z","avatar_url":"https://github.com/azer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## virtual-glue\n\nRender HTML with [Hyperglue](http://github.com/substack/hyperglue) and [VirtualDOM](http://npmjs.org/virtual-dom)\n\n## Install\n\n```bash\n$ npm install virtual-glue\n```\n\n## Usage Example\n\nA simple clock app:\n\n```js\nvar glue = require('virtual-glue')\nvar time = require('format-date')\n\nvar patch = glue(document.body, '\u003ch1 class=\"clock\"\u003e\u003c/h1\u003e', function () {\n  return {\n      '.now': time('{hours}:{minutes}:{seconds}')\n  }\n})\n\nsetInterval(patch, 1000)\n```\n\nOn server-side (a.k.a one-time render)\n\n```js\nvar glue = require('virtual-glue')\nvar time = require('format-date')\n\nvar html = glue('\u003ch1 class=\"now\"\u003e\u003c/h1\u003e', {\n  '.now': time('{hours}:{minutes}:{seconds}')\n})\n\nhtml\n// =\u003e \u003ch1 class=\"clock\"\u003e15:03:17\u003c/h1\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazer%2Fvirtual-glue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazer%2Fvirtual-glue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazer%2Fvirtual-glue/lists"}