787035f6b138177eb22bb259d25951e4b24b511d
- move all generated tag classes from j2html.tags.specialized.generated to j2html.tags.specialized since they are now only generated tags and in the long run there should be no difference for a user of j2html whether the classes have been generated or not
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.4.0</version>
</dependency>
Or the gradle dependency
compile 'com.j2html:j2html:1.4.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
Description
Languages
Java
96.5%
CSS
1.8%
HTML
1.4%
JavaScript
0.3%