An IConfiguration extension for enabling reuse of key-value configuration items using format characters
Install-Package TemplateFormattedConfiguration -Version 1.0
- In your configuration, set values to be {another_key}
- Call configuration.EnableTemplatedConfiguration();
- The value of that keys will be replaces by another_key's value
appsettings.json: { "name" : "Steve", "last_name" : "Jobs", "full_name" : "{name} {last_name}" }
configuration["full_name"] -> "Steve Jobs"
- Fork it (https://github.com/javitolin/TemplateFormattedConfiguration/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Distributed under the MIT license.