An open API service indexing awesome lists of open source software.

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

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].