mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-11-28 11:22:10 +01:00
1.6 KiB
1.6 KiB
Template Functions
ntfy includes a (reduced) version of Sprig to add functions that can be used when you are using the message template feature.
Below are the functions that are available to use inside your message/title templates.
- String Functions:
trim,trunc,substr,plural, etc.- String List Functions:
splitList,sortAlpha, etc.
- String List Functions:
- Integer Math Functions:
add,max,mul, etc.- Integer List Functions:
until,untilStep
- Integer List Functions:
- Date Functions:
now,date, etc. - Defaults Functions:
default,empty,coalesce,fromJSON,toJSON,toPrettyJSON,toRawJSON,ternary - Encoding Functions:
b64enc,b64dec, etc. - Lists and List Functions:
list,first,uniq, etc. - Dictionaries and Dict Functions:
get,set,dict,hasKey,pluck,dig, etc. - Type Conversion Functions:
atoi,int64,toString, etc. - Path and Filepath Functions:
base,dir,ext,clean,isAbs,osBase,osDir,osExt,osClean,osIsAbs - Flow Control Functions:
fail - Advanced Functions
- UUID Functions:
uuidv4 - Reflection:
typeOf,kindIs,typeIsLike, etc. - Cryptographic and Security Functions:
sha256sum, etc. - URL:
urlParse,urlJoin
- UUID Functions: