{"id":16982043,"url":"https://github.com/tenphi/tmin","last_synced_at":"2025-10-12T17:01:46.393Z","repository":{"id":9145084,"uuid":"10937667","full_name":"tenphi/tmin","owner":"tenphi","description":"Tiny client-side DOM content generator","archived":false,"fork":false,"pushed_at":"2014-08-14T17:02:59.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T19:11:38.367Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tenphi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-25T12:29:25.000Z","updated_at":"2014-08-14T17:02:58.000Z","dependencies_parsed_at":"2022-09-07T03:21:45.053Z","dependency_job_id":null,"html_url":"https://github.com/tenphi/tmin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenphi%2Ftmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenphi%2Ftmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenphi%2Ftmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenphi%2Ftmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tenphi","download_url":"https://codeload.github.com/tenphi/tmin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244885515,"owners_count":20526293,"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-10-14T02:07:09.285Z","updated_at":"2025-10-12T17:01:46.318Z","avatar_url":"https://github.com/tenphi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"tmin.js\n===\n\nEasy DOM content generator\n\ninspired by [laconic.js](https://github.com/joestelmach/laconic) and client-side template engine by [ivan4th](https://github.com/ivan4th)\n\n## Install\n\nby bower\n\n```bash\nbower install tmin\n```\n\n## Usage\n\nFast and clean elements creation\n\n```javascript\nel = t.div({\n  class: ['class1', 'class2']\n},\n  t.a({\n      style: {\n        color: 'red'\n      },\n      href: 'example.com'\n  }, 'link')\n);\n\nconsole.log(el.outerHTML);\n```\n\noutput:\n\n```html\n\u003cdiv class=\"class1 class2\"\u003e\u003ca href=\"example.com\" style=\"color: red;\"\u003elink\u003c/a\u003e\u003c/div\u003e\n```\n\nEasy creation of collections for instant appending\n\n```javascript\nelement = t(\n    t.div({ class: 'class1' }),\n    t.div({ class: 'class2' })\n);\n```\n\nShort usage (if needed)\n\n```javascript\nt(t.div, t.span);\n```\n\nData attribute\n\n```javascript\nel = t.div({\n    class: 'user',\n    data: {\n        name: 'Andrey',\n        homeAddress: 'Moscow'\n    }\n});\n\nconsole.log(el.outerHTML);\n```\n\noutput:\n\n```html\n\u003cdiv class=\"user\" data-name=\"Andrey\" data-home-address=\"Moscow\"\u003e\u003c/div\u003e\n```\n\njQuery version\n\n```javascript\n$el = $t.div({\n  class: ['class1', 'class2']\n},\n  $t.a({\n      style: {\n        color: 'red'\n      },\n      href: 'example.com'\n  }, 'link')\n);\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2013 Andrey Yamanov \u003ctenphi@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenphi%2Ftmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftenphi%2Ftmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenphi%2Ftmin/lists"}