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/Math

Math

Math items

Math

addReturns the value plus the given number, so {{ subtotal | add:shipping }} is the two of them together.{{ subtotal | add:shipping | decimal:2 }}divideReturns the value split by the given number, which is an average from a total and a count, or a share from an amount and a number of people.{{ total | divide:orders | decimal:2 }}multiplyReturns the value scaled by the given number, which is a line total from a price and a quantity, a tax-inclusive amount from a rate, or a count converted into a period.{{ net | multiply:1.21 | decimal:2 }}subtractReturns the value less the given number, the way a remaining quantity is worked out from a total and what has gone, as in {{ seats | subtract:booked }}.{{ seats | subtract:booked }} left
Edit or read the source on GitHub
Previousdays_betweenNext add

Built with in Vilnius, Lithuania Say hello!

ProductsOpen sourceDocs GitHub