This brings the Bootstrap UI kit into the j2html ecosystem.
Bootstrapfor CSS classes declared in the UI toolkitBootstrapConfigfor useful URLs for CDN and Webjar locationsBootstrapIconsfor CSS classes supporting the Bootstrap IconsBootstrapTagCreatorfor common templates for Bootstrap components
<dependency>
<groupId>dev.rebelcraft</groupId>
<artifactId>bootstrap-j2html-extension</artifactId>
<version>0.0.3</version>
</dependency>Usage:
import dev.rebelcraft.j2html.bootstrap.Bootstrap;
import dev.rebelcraft.j2html.ext.aria.AriaRoles;
import static j2html.TagCreator.*;
div()
.withClasses(Bootstrap.alert, Bootstrap.alert_primary)
.attr(AriaRoles.roleAlert)
.with(
text("A simple primary alert—check it out!")
)