Skip to content

szabogabriel/jMustache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jMustache

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.

Functionality

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.

Performance

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

About

A simple implementation of the Mustache templating engine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published