Function dilla_renderer::engine::prepend

source ·
pub fn prepend(value: Value, prepend: String) -> Result<Value, Error>
Expand description

Prepend a string to a [minijinja::Value] String or Seq.

{{ 'one'|prepend('Some') }}
  -> Someone
{% set foo = ['foo', 'bar']|prepend('prepend') %}
{{ foo|join(', ') }}
  -> prepend, foo, bar