{"id":13434667,"url":"https://github.com/tipsy/j2html","last_synced_at":"2025-05-14T13:03:43.310Z","repository":{"id":30844228,"uuid":"34401698","full_name":"tipsy/j2html","owner":"tipsy","description":"Java to HTML generator. Enjoy typesafe HTML generation.","archived":false,"fork":false,"pushed_at":"2024-05-14T19:41:27.000Z","size":4595,"stargazers_count":771,"open_issues_count":25,"forks_count":137,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-04-12T03:44:47.752Z","etag":null,"topics":["html-generator","html5","java","template-engine"],"latest_commit_sha":null,"homepage":"https://j2html.com/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tipsy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2015-04-22T16:24:53.000Z","updated_at":"2025-04-07T16:58:09.000Z","dependencies_parsed_at":"2024-06-19T01:51:14.923Z","dependency_job_id":"b87ad638-aeff-410f-9a29-1a728d26f4bd","html_url":"https://github.com/tipsy/j2html","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tipsy%2Fj2html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tipsy%2Fj2html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tipsy%2Fj2html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tipsy%2Fj2html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tipsy","download_url":"https://codeload.github.com/tipsy/j2html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149824,"owners_count":22022850,"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":["html-generator","html5","java","template-engine"],"created_at":"2024-07-31T03:00:20.164Z","updated_at":"2025-05-14T13:03:43.247Z","avatar_url":"https://github.com/tipsy.png","language":"Java","readme":"[![Workflow](https://github.com/tipsy/j2html/workflows/Test%20all%20JDKs%20on%20all%20OSes/badge.svg)](https://github.com/tipsy/j2html/actions)\n![](https://img.shields.io/github/license/tipsy/j2html.svg)\n![](https://img.shields.io/maven-central/v/com.j2html/j2html.svg)\n\n# j2html\nJava to HTML generator. Enjoy typesafe HTML generation.\n\nThe project webpage is [j2html.com](http://j2html.com).\n\n## Getting started\n### Add the maven dependency\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.j2html\u003c/groupId\u003e\n    \u003cartifactId\u003ej2html\u003c/artifactId\u003e\n    \u003cversion\u003e1.6.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n### Or the gradle dependency\n```\ncompile 'com.j2html:j2html:1.6.0'\n```\n\n### Import TagCreator and start building HTML\n```java\nimport static j2html.TagCreator.*;\n\npublic class Main {\n    public static void main(String[] args) {\n        body(\n            h1(\"Hello, World!\"),\n            img().withSrc(\"/img/hello.png\")\n        ).render();\n    }\n}\n```\nThe above Java will result in the following HTML:\n```html\n\u003cbody\u003e\n    \u003ch1\u003eHello, World!\u003c/h1\u003e\n    \u003cimg src=\"/img/hello.png\"\u003e\n\u003c/body\u003e\n```\n\nFind more examples at http://j2html.com/examples.html\n","funding_links":[],"categories":["KSP","Java"],"sub_categories":["Mini Program"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftipsy%2Fj2html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftipsy%2Fj2html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftipsy%2Fj2html/lists"}