Docs
OverviewTemplate SyntaxQuick Guide

Resources

Source code

Modifiers

Text
Casing
lowerslugtitletitle_modelupper
Edit
concathashreplacereplace_patternreverseshortenwrap
Split & join
joinlinessplit
Trim
trimtrim_prefixtrim_suffix
Escape
escape_htmlescape_jsescape_url
Format
currencydatedecimalfrom_datelengthline_numbers
Collections
Access
findfirstkeylastpluck
Query
filterhasis
Transform
cleanflattenmapmergesortsum
Files & paths
File
file
Path
dirnameextext_dotext_prependext_trimfilename
Convert
Parse
from_csvfrom_jsonfrom_yaml
Serialize
jsonmarkdownyaml
Logic
Compare
andeqgtgteltlteneqnotor
Default
defaultwhen
Render
Template
template
Datetime
add_daysadd_monthsadd_yearsdays_between
Math
adddividemultiplysubtract
Docs/Sintax/Logic/Compare/lte

lte

Reports whether the value falls on or before the given date, the same stance LtTime takes on what counts as a date.

Equality here is the same instant rather than the same day.

InputArgumentsReturnstime.Timetime.Timeboolfloat64float64bool
Source
BasicSource

Reads a warning window off a day count, which is how a template asks whether something is expiring soon.

Given

{"days_left": 12}

Template

{{ days_left | lte:14 }}

Result

true
Read the source of lte on GitHub
PreviousltNext neq

Built with in Vilnius, Lithuania Say hello!

ProductsOpen sourceDocs GitHub