Closed dannosaur closed 4 years ago
It looks like there's a bug there in the handling of Resources
, but here's a work around:
in your first attempt replace merged
with $merge
or $mergeIntoDocRoot
(arbitrary suffix after $merge
).
There's also an undocumented feature I think you'd love. Email me at tavis at unbounce.com and I'll send you an example of it in use.
Another option:
Resources:
$merge_custom: !$ CustomResources
$merge_db: !$ database.Resources
$merge_memc: !$ memcached.Resources
Ah, yes.. the latter option seems to do what I'm looking for.
I'll email you separately.
Did #224 fix this?
I'll run some quick tests on master with some test templates I have hanging around from previous issues.
Turns out it didn't.
I'm building a series of stacks with common components, and to save rewriting almost the same large templates with minimal changes, I considered splitting each component's configuration/templates into separate files, and using
!$merge
to bring them all together as/when needed on a per-stack basis.Consider this extremely cut-down example to illustrate what I'm trying to achieve here;
file1.yml
file2.yml
stack.yml
So if stack.yml contains the following (to illustrate the pre-processor is working and configured correctly);;
The output becomes;
However, if the section
merged
is replaced withResources
;then the following error is observed;
Is there any way to run this kind of merge/preprocessor logic on the top-level "Global" sections to allow this kind of configuration to work and render correctly?