flood
flood copied to clipboard
Read values from config.template.js as a fallback for config.js
Let's just always merge these files (preferring values in config.js of course) so nobody has to worry about copying anything over to config.js.
I don't understand what do you mean @jfurrow? Is it still up to date?
So let's say a new configuration option is added to config.template.js, but users don't notice when they update, so they don't copy this option to their customized config.js. If Flood were to treat any value in config.template.js as a default, users wouldn't need to copy any new configuration options, and Flood would continue working as expected.
It's a really simple change, I just don't want to forget about it.
Ah sure, great idea. First I thought you were suggesting to remove the template file and just use config.js .
You mean:
- Read values in
config.js - if the value don't exist in
config.jsso read it inconfig.template.jsas a fallback