Reward Letter Template Custom Formatting & Formulas
Easily tailor reward letters using customizable formatting formulas and display.
Once you've begun to design your Reward Letter, you may notice you want to add formatting to the numbers from your cycle for a clean design. Use the following placeholder codes to format numbers like salaries, bonuses, or percentages from your Comp Cycle.
⚠️ Examples and images are provided to make it easier to use - but please reach out to support@getpequity.com for any help along the way!
Format Function | Outcome Example | Reward Letter Sample |
Format numbers with commas and 2 decimal places |
1,234.00 | {{ current_salary | currency_format }} |
Convert a number to a percentage |
0.125 = 12.5% | {{bonus | percent_format}} |
Round to 2 nearest decimal points |
1234.56789 = 1234.57 | {{ equity_cash | round(2) }} |
Format a number to exactly two decimal places |
1234.5 = 1234.50
|
{{ "%.2f" | format(salary) }} |
Format date (YYYY-MM-DD) |
2025-07-24 |
{{ my_date|date:"Y-m-d" }} |
Format date (Full month name) |
July 24, 2025 |
{{ my_date|date:"F j, Y" }} |
Format time (24h) |
17:30 |
{{ my_date|time:"H:i" }} |
Uppercase text |
JASON |
{{ name|upper }} |
Lowercase text |
jason |
{{ name|lower }} |
Title case text |
Jason Dorn |
{{ name|title }} |
Replace characters |
ason Dorn |
{{ name|replace:"J," }} |
Trim whitespace |
hello |
{{ " hello " | trim }} |
Truncate to 2 words |
foo bar... |
{{ "foo bar baz"|truncatewords:2 }} |
Truncate to 7 characters |
one... |
{{ "one two three"|truncatechars:7 }} |
Join list with commas |
1, 2, 3 |
{{ my_list|join:", " }} |
Sort dictionary by key |
sorted dictionary by key |
{{ my_dict|dictsort }} |
💡Tips
-
Always use straight quotes (e.g., ", not “ or ”)
-
Use {{ ... }} for inserting variables.
-
Use {% ... %} for logic (if, for loops), if available.
-
You don’t need to write any code—just use the examples and plug in your variable names!