This software is a simple and fairly small implementation of the Mustache templating engine in pure Java.
The project has no 3rd party dependencies.
The data provided to the template is an object implementing the Map interface. For boolean values, the Boolean wrapper class should be used. For the lists an object implementing the List interface should be used, which should contain objects implementing once again the Map interface.
The implementation is not complete; the 'Set Delimiter' option is not supported at the moment.
Additionally, embedded keys in dynamic values are supported. E.g. {{key.{{discriminator}}}}
is a dynamic value, where discriminator
can be set independently. So a dynamic resolution of final value is possible.
It renders the timeline.mustache (which is an example taken from https://github.com/spullara/mustache.java) around 145.000 times per second (which is about 29x faster, than the other implementation).