Closed ncbaratta closed 6 years ago
This is a kind of fix for nested assemblies. If there is a module, then assembly, then another module, the last module gets context of the nested assembly, even if it is not in it. So an assembly should "save" the previous context found in the {context} attribute, set {context} to its own value, include things, and at the end restore the previous {context} value.
Disclaimer: I'm not the author.
Is there any point in trying to explain this as comments in asciidoc? would it be better to provide an example of a nested assembly? suggestion: remove these lines create a follow up issue to provide nested assembly example with accompanying documentation
@ncbaratta, let me know if the pull request #74 resolves this issue
Sure does!
PR #74 resolves this issue, so I'm closing this issue.
At the top of the Assembly template there is a comment that reads:
// Save the context of the assembly that is including this one. // This is necessary for including assemblies in assemblies. // See also the complementary step on the last line of this file.
It's very confusing. What does 'Save' mean here? I recommend rewording this but I don't have a recommendation because I'm not sure what it means right now.