Open adriangaro opened 1 month ago
Mayhaps an alternative would also be to have something like
inline_scripts = {
## context_configs_type = multiple
ant:governments/authorities/* = {
## cardinality = 0..inf
advanced_authority_swap = cwt_config_path[authority/advanced_authority_swap]
}
}
Similar to #68 ?
Yes and no.
In #68, you inherit the context/config of the invocation place. (useful for conditional inlines) In this, you want to inherit/copy the context/config of an existing cwt declaration. (useful for when the above is not useful/impossible to infer)
In some cases, you do not have an alias for a specific context type, for example the plugin cannot infer that something is for example part of a
pop_job
declaration or part ofauthority
declaration.For example i have to copy the below, to make sure (especially with dynamic calls) that the inlines know the context.
Would i be possible to instead somehow reference an existing configuration? Maybe allow specifying a cwt config path like
copy_config = /authority
orcopy_config = /job/resources
(just an idea)> Sadly not everything has an alias (plus it would be laborious to make for everything)