miker2 / flexi_config_reader

A flexible configuration format that supports templated tables and referencing of existing keys.
MIT License
3 stars 1 forks source link

Allow for inline string interpolation #143

Open k2shah opened 1 month ago

k2shah commented 1 month ago

currently if a value if declared like

default_flavor = "mango" default_qty = 2

we can not use them for inline interpolation when referenced like so

dinner_menu = "pie_$(default_flavor)" We'd expect this to be "pie_mango"

Would also be nice if we can do this with multiple values like

dinner_order = "pie_$(default_flavor)_qty_$(qty)" We'd expect this to be "pie_mango_qty_2", note this implicit conversion from int to string