Dotty Documentation

0.1.1-bin-SNAPSHOT

object filters

Custom liquid template filters

[-] Constructors

[-] Members

[+] final class First

Used to get the first element of arrays and strings:

{% assign array = "1,2,3,4,5" | split: "," %}
{{ array | first }}

The above snippet will render "1"

[+] final class Json

Used to transform java representation to valid JSON

This can be used on things like the docs (java.util.List[Map[String,_]]) which are available globally:

{{ docs | json }}
[+] final class Reverse

Used to reverse arrays:

{% assign array = "1,2,3,4,5" | split: "," %}
{{ array | reverse }}