I'm looking analogs for Rails Liquid markup! in Java or Scala languages. Which markup exists like liquid?
Scalate Mustache
May do the trick, offers pre-compilation, and "codeless" templates (although I am not sure if the security requirement of Liquid is fully met).
At any rate, check it out, the Scalate template engine itself is quite powerful (jade, scaml, etc.)...
I was also looking for a java implementation of Liquid, and found this: https://github.com/bkiers/Liqp
According to the author, Liqp is:
An ANTLR based 'Liquid Template' parser and rendering engine.
You should also take a look at Handlebars.java.
You can make Helper
s to emulate Liquid's filters:
Liquid:
{{ context | markdownify }}
Handlebars.java:
{{md context}}
The most similar I can think of is probably Jangod. I guess you be able to use Liquid directly with the help of JRuby. Alternatively you can use some classic markup format like Velocity or Freemarker. Another suggestion that I haven't personally tried would be Mustache.java.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With