Skip to content

Commit

Permalink
Add info about template functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tierpod committed Feb 3, 2022
1 parent 14dbe3e commit 84e5798
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@ Copy config/config.dist.yaml to config.yaml and change parameters:
* **external_template** (str, *mandatory for external_template format*): path to external template
file

Templates
---------

External templates can reference to dmarc.Report struct as `.` (dot, see consts.go for example).

Additional functions can be used:

* `now "2006-2-1"` returns current date and time, first argument is the golang time format.

Daily reports
--------------

Expand Down

0 comments on commit 84e5798

Please sign in to comment.