J2html
Java to HTML generator. Enjoy typesafe HTML generation.
Install / Use
/learn @tipsy/J2htmlREADME
j2html
Java to HTML generator. Enjoy typesafe HTML generation.
The project webpage is j2html.com.
Getting started
Add the maven dependency
<dependency>
<groupId>com.j2html</groupId>
<artifactId>j2html</artifactId>
<version>1.6.0</version>
</dependency>
Or the gradle dependency
compile 'com.j2html:j2html:1.6.0'
Import TagCreator and start building HTML
import static j2html.TagCreator.*;
public class Main {
public static void main(String[] args) {
body(
h1("Hello, World!"),
img().withSrc("/img/hello.png")
).render();
}
}
The above Java will result in the following HTML:
<body>
<h1>Hello, World!</h1>
<img src="/img/hello.png">
</body>
Find more examples at http://j2html.com/examples.html
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
