andreasgerstmayr / fava-dashboards

Custom Dashboards for Beancount in Fava
MIT License
143 stars 17 forks source link

Feature Requested: Support ninja template in link field #23

Closed ileodo closed 7 months ago

ileodo commented 8 months ago
  1. in dashboard.yaml, have a map allows user to define some variables, e.g. "fava_path" describing the fava url path
  2. allow users to refer to those variables in fields like link, e.g. {{fava_path]}/account/ABC
andreasgerstmayr commented 7 months ago

I'd like to keep this extension as simple as possible and would rather not support templating. To preprocess your dashboards.yaml file you can use for example envsubst: https://dustinrue.com/2020/05/simplistic-templating-with-envsubst/