From bc8a4e662bda5765ddb98235cdb02f7054838c18 Mon Sep 17 00:00:00 2001 From: Andy Frank Date: Wed, 26 Jan 2022 16:54:45 -0500 Subject: [PATCH] Add readme sectino for var method chaining --- readme.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/readme.md b/readme.md index ac1e8db..5f22d80 100644 --- a/readme.md +++ b/readme.md @@ -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