{"id":13341649,"url":"https://github.com/ajmd17/blockml-component","last_synced_at":"2025-03-11T22:31:18.942Z","repository":{"id":89071763,"uuid":"103780443","full_name":"ajmd17/blockml-component","owner":"ajmd17","description":"A component-based virtual DOM system (similar to React) for blockml.","archived":false,"fork":false,"pushed_at":"2017-09-21T03:26:11.000Z","size":9,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-21T11:01:52.366Z","etag":null,"topics":["components","react","virtual-dom","web-components"],"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/ajmd17.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-16T20:04:07.000Z","updated_at":"2023-07-08T02:34:55.000Z","dependencies_parsed_at":"2023-06-13T19:30:09.474Z","dependency_job_id":null,"html_url":"https://github.com/ajmd17/blockml-component","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/ajmd17%2Fblockml-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajmd17%2Fblockml-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajmd17%2Fblockml-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajmd17%2Fblockml-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajmd17","download_url":"https://codeload.github.com/ajmd17/blockml-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243125149,"owners_count":20240263,"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":["components","react","virtual-dom","web-components"],"created_at":"2024-07-29T19:25:39.568Z","updated_at":"2025-03-11T22:31:18.936Z","avatar_url":"https://github.com/ajmd17.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blockml-component\n\nA component-based system with a virtual DOM for [blockml](https://github.com/ajmd17/blockml) (a simple language that creates HTML). It is similar to React and Angular, but intended to be as simple as possible.\n\nExample usage:\n```\nvar blockml = require('blockml');\nblockml.component = require('blockml-component');\n\nblockml.component('Page', {\n  render: function (props, children) {\n    return blockml`\n      div {\n        ${children}\n      }\n    `;\n  }\n});\n\n// a custom \"App\" component that we can use in our code\nblockml.component('App', {\n  render: function (props, children) {\n    return blockml`\n      Page {\n        h1 {\n          \"Hello World\"\n        }\n        ${children}\n      }\n    `;\n  }\n});\n\n// this will hold the rendered html\nvar html = blockml.render(`\n  html {\n    head;\n    body {\n      App {\n        h1 {\n          \"Hello\"\n        }\n      }\n    }\n  }\n`);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajmd17%2Fblockml-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajmd17%2Fblockml-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajmd17%2Fblockml-component/lists"}