mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-18 19:40:18 +00:00
When you want to use "source":"template" arguments inside your hook file but also parse the hook file itself as a template, it is necessary use different delimiters on the two template parsers to avoid having to pepper all the inner templates with constructs like {{"{{"}}. Added an extra command line argument -template-delims that expects a comma-separated pair of delimiters like '[[,]]' that will be used when parsing the whole hooks file template. Inner templates in an Argument always use the default double-brace style. |
||
---|---|---|
.. | ||
hook.go | ||
hook_test.go | ||
request.go |