Java 到 HTML 生成器。享受类型安全的 HTML 生成。
Java to HTML generator. Enjoy typesafe HTML generation.
The project webpage is j2html.com.
com.j2html
j2html
1.6.0
compile 'com.j2html:j2html:1.6.0'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:
Hello, World!
Find more examples at http://j2html.com/examples.html
暂无开放 Issues,或尚未同步最近议题。