Docs
OverviewTemplate SyntaxQuick Guide

Resources

Source code

Modifiers

Text
Casing
lowerslugtitletitle_modelupper
Edit
concatreplacereplace_patternreverseshortenwrap
Split & join
joinlinessplit
Trim
trimtrim_prefixtrim_suffix
Escape
escape_htmlescape_jsescape_url
Format
currencydecimalformatlengthline_numbers
Collections
Access
findfirstkeylastpluck
Query
filterhasis
Transform
flattenmapmergesortsum
Files & paths
File
file
Path
dirnameextext_dotext_prependext_trimfilename
Convert
Parse
from_csvfrom_jsonfrom_yaml
Serialize
jsonmarkdownyaml
Logic
Compare
eqgtgtenot
Default
default
Render
Template
template
Docs/Sintax/Text/Edit

Edit

Replace, wrap, shorten, and reshape strings.

Edit

concatJoins the value and every part into one string, in order, with no separator.{{ name | concat:'-','01','.txt' }}replaceReplaces every occurrence of the old substring with the replacement in the input.{{ text | replace:'world','everyone' }}replace_patternReplaces every match of the RE2 pattern in the input with the replacement, which may reference capture groups with $1, $2 and so on.{{ name | replace_pattern:'(\w+), (\w+)','$2 $1' }}reverseReverses the input by rune, so multi-byte characters stay intact.{{ word | reverse }}shortenTruncates the input to at most a given number of bytes, returning it unchanged when it is already shorter.{{ text | shorten:5 }}wrapNests the value inside a new single-entry map under the given key.{{ value | wrap:'name' }}
Edit or read the source on GitHub
PreviousupperNext concat

Built with in Vilnius, Lithuania Say hello!

ProductsOpen sourceDocs GitHub