https://github.com/t1/bulma-java
A simple servers-side-html library based on Bulma components
https://github.com/t1/bulma-java
Last synced: about 1 year ago
JSON representation
A simple servers-side-html library based on Bulma components
- Host: GitHub
- URL: https://github.com/t1/bulma-java
- Owner: t1
- License: apache-2.0
- Created: 2023-09-21T04:53:49.000Z (almost 3 years ago)
- Default Branch: trunk
- Last Pushed: 2025-05-09T12:07:24.000Z (about 1 year ago)
- Last Synced: 2025-05-09T13:25:18.904Z (about 1 year ago)
- Language: Java
- Size: 309 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= Bulma Java image:https://maven-badges.herokuapp.com/maven-central/com.github.t1/bulma-java/badge.svg[link=https://search.maven.org/artifact/com.github.t1/bulma-java] image:https://github.com/t1/bulma-java/actions/workflows/maven.yml/badge.svg[link=https://github.com/t1/bulma-java/actions/workflows/maven.yml]
A simple servers-side-html library based on Bulma components.
Everything is fluent and chainable, i.e. no builders, no withers.
Simple example:
[source,java]
----
@Path("/")
public class Application {
@GET
@Produces(TEXT_HTML)
public String index() {
return html("Title Text").body(title("Hello World")).render();
}
}
----
returns:
[source,html]
----
Title Text
Hello World
----
You can also return the `Renderable` and add a trivial `MessageBodyWriter`.
This is JAX-RS, but works analogous in Spring or whatever.
There are no dependencies!
For more examples, look at the tests and maybe the `all-tests.html` page generated by the tests.
For a little demo based on https://quarkus.io[Quarkus] and https://htmx.org/docs/[HTMX], take a look https://github.com/t1/htmx-quarkus-demo[here].
== Restrictions
Currently, the only icons supported, is https://fontawesome.com[fontawesome].