{"id":26322957,"url":"https://github.com/devlop/kobolt","last_synced_at":"2026-05-21T07:46:08.106Z","repository":{"id":57107958,"uuid":"427891625","full_name":"devlop/kobolt","owner":"devlop","description":"The most simple template factory in the world!","archived":false,"fork":false,"pushed_at":"2021-11-20T08:27:02.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T16:44:45.605Z","etag":null,"topics":["factory","javascript","template","typescript"],"latest_commit_sha":null,"homepage":"","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/devlop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-14T09:56:36.000Z","updated_at":"2021-11-20T08:27:04.000Z","dependencies_parsed_at":"2022-08-20T17:11:14.306Z","dependency_job_id":null,"html_url":"https://github.com/devlop/kobolt","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlop%2Fkobolt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlop%2Fkobolt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlop%2Fkobolt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlop%2Fkobolt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devlop","download_url":"https://codeload.github.com/devlop/kobolt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243762251,"owners_count":20343979,"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":["factory","javascript","template","typescript"],"created_at":"2025-03-15T17:16:02.008Z","updated_at":"2026-05-21T07:46:04.858Z","avatar_url":"https://github.com/devlop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.npmjs.org/package/@devlop/kobolt\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@devlop/kobolt.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/devlop/kobolt/blob/main/LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-green\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# kobolt\n\nThe most simple template factory in the world!\n\nTurn any `\u003ctemplate\u003e` into a `HTMLElement` in a breeze.\n\n# Installing\n\nusing npm\n\n```bash\nnpm install @devlop/kobolt\n```\n\n# Placeholders\n\nKobolt can automatically replace placeholders in your template using the format `{{ placeholder }}`.\n\n# Usage\n\n```\n\u003ctemplate\u003e\n    \u003cdiv data-description=\"{{ title }}\"\u003e\n        \u003ch1 id=\"{{ id }}\"\u003e{{ title }}\u003c/h1\u003e\n    \u003c/div\u003e\n\u003c/template\u003e\n```\n\n```\nimport kobolt from '@devlop/kobolt';\n\nconst templateElement = document.querySelector('template');\n\nconst outputElement = kobolt(templateElement, {\n    // pass a key value object with any placeholders that should be replaced.\n    'title': 'Kobolt',\n    'id': 'Co',\n});\n\nconsole.log(outputElement.outerHTML);\n\n// \u003cdiv data-description=\"Kobolt\"\u003e\n//     \u003ch1 id=\"Co\"\u003eKobolt\u003c/h1\u003e\n// \u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlop%2Fkobolt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlop%2Fkobolt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlop%2Fkobolt/lists"}