JLogic is a simple open-source library for converting a Markdown template to Freemarker and HTML. It is specifically designed to be used to build templates for document management systems.
Main goals are:
- The template should be compact
- The template should be easily readable
In a worst case scenario:
- It shoud be possible to replace all Markdown by HTML
- It shoud be possible to replace every template command with plain Freemarker
A basic template like this:
Hi {name}!
Will be converted to a Freemarker/HTML code like that:
[@interview]
[@field var='name'/]
[/@interview]
[@document]
<p>Hi
[@value var='name'/]!</p>
[/@document]
More examples can be found here.
JModel is built with Maven. To build from source,
> mvn package
generates a snapshot jar target/jmodel-0.0.1-SNAPSHOT.jar.
To run the test suite locally,
> mvn test
JModel is very much in-development, and is in no way, shape, or form guaranteed to be stable or bug-free. Bugs, suggestions, or pull requests are all very welcome.
Copyright 2023 Renato Crivano
Licensed under the Apache License, Version 2.0