template-cli 0.4.4

CLI for templating based on JSON, YAML or HCL configuration
Documentation
length: {% [] | length %}
length: {% [1,2,3] | length %}
reverse: {% [1,2,3] | reverse %}
take: {% [1,2,3] | take(100) %}
take: {% [1,2,3] | take(0) %}
take: {% [1,2,3] | take(1) %}
drop: {% [1,2,3] | drop(100) %}
drop: {% [1,2,3] | drop(0) %}
drop: {% [1,2,3] | drop(1) %}
first: {% [1,2,3] | first %}
first:{% [] | first %}
last: {% [1,2,3] | last %}
last:{% [] | last %}
index: {% [1,2,3] | index(0) %}
index:{% [] | index(0) %}
index:{% [1] | index(1) %}
contains: {% ["a", "b", "c"] | contains("a") %}
contains: {% [] | contains("a") %}
empty: {% [1] | empty %}
empty: {% [] | empty %}
unique: {% [1, 2, 3] | unique %}
empty: {% [1, 1, "2", "2", {}, {}, [3], [3], null, null, -0.0, 0.0] | unique %}
any: {% [true, false] | any %}
any: {% [] | any %}
all: {% [true, false] | all %}
all: {% [] | any %}
none: {% [true, false] | none %}
none: {% [] | any %}
some: {% [true, false] | some %}
some: {% [] | any %}
chunked: {% [] | chunked(1, 0) %}
chunked: {% [1,2,3] | chunked(2, 0) %}
chunked: {% [1,2,3] | chunked(2, 1) %}