Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work out a neat way to ref nested resources in templates #2

Open
jamesroutley opened this issue Feb 20, 2017 · 0 comments
Open

Work out a neat way to ref nested resources in templates #2

jamesroutley opened this issue Feb 20, 2017 · 0 comments

Comments

@jamesroutley
Copy link
Owner

Currently, we can ref AtomicTemplates with ref(atomic_template.name). If we want to ref a resource which is contained within another template, we must ref it's actual name. This is unsafe as resource names may change on compilation if they clash with another resource name.

  • Could be done by storing merged templates in a collections.OrderedDict rather than a list. Users could then access the nested resource with template.templates[<atomic_template>.name]. This could get verbose with multiple nested templates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant