-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add configuration variables #71
Comments
I've looked into this, and my current suggestion would be rather hacky. Read the toml into a String, have a separate struct implementing Deserialize parse the variables into a HashMap, substitute the variables in-memory using regex, deserialize the resulting config, merge with default configuration. If that sounds reasonable enough, I'll start working on a PR for it. |
I think this is a good way to initially implement it. I would be very open to seeing a PR with this. |
Variable interpolation in the configuration file #71
Add variables which can be inserted onto other configuration options
This would look like:
The text was updated successfully, but these errors were encountered: