Skip to content

Commit

Permalink
Add readme sectino for var method chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
afrankvt committed Jan 26, 2022
1 parent 81c0c4d commit bc8a4e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,17 @@ replace text unescaped use the "triple-stash" `{{{`:
output:
This is A&W and this is A&W

Method chaining is supported for `Obj` variables:

template:
The last day of the month is {{date.lastOfMonth.toLocale}}

map:
["data":Date.today]

output:
The last day of the month is 31-Jan-2022

### If Blocks

If blocks use the `{{#if var}}` syntax, where the value of `var` is considered
Expand Down

0 comments on commit bc8a4e6

Please sign in to comment.