add
Returns the value plus the given number, so `{{ subtotal | add:shipping }}` is the two of them together.
A negative argument subtracts, which makes subtract a convenience rather than the only way round.
InputArgumentsReturns
Sourceanyanyfloat64BasicSource
Adds a field to the value it is piped.
Given
{"subtotal": 42.5, "shipping": 4.95}Template
{{ subtotal | add:shipping | decimal:2 }}Result
47.45