Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

File templates are considered as embedded templates #4

Closed
jouir opened this issue Nov 5, 2021 · 0 comments
Closed

File templates are considered as embedded templates #4

jouir opened this issue Nov 5, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@jouir
Copy link
Owner

jouir commented Nov 5, 2021

With customblock.tmpl file:

馃帀 *{{ if (eq .Pool.Coin "xch") }}Farmed{{ else }}Mined{{ end }}* [#{{ .Block.Number }}]({{ formatBlockURL .Pool.Coin .Block.Hash }}) _{{ printf "%.6f" (convertCurrency .Pool.Coin .Block.Reward) }} {{ upper .Pool.Coin }}_

And notification templates in the configuration file:

notification-templates:
  block: customblock.tmpl

When a new block is detected, flexassistant fails to send the notification:

DEBU[0000] Parsing embeded template file customblock.tmpl 
WARN[0000] Cannot send notification: parse failed: template: pattern matches no files: `customblock.tmpl` 

Because it tried to parse an embedded template instead of a file template.

@jouir jouir added the bug Something isn't working label Nov 5, 2021
jouir added a commit that referenced this issue Nov 5, 2021
Signed-off-by: Julien Riou <julien@riou.xyz>
@jouir jouir closed this as completed Nov 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant