nwm_region_mgr.utils.string_utils.expand_with_lists#
- nwm_region_mgr.utils.string_utils.expand_with_lists(template_str, context)[source]#
Expand a string with list placeholders using Cartesian product.
Always returns a dict if any list placeholders are involved — even if only one result. Otherwise, returns a plain substituted string.
- Return type:
dict|str