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

MODULES key not found for @template #117

Open
BeastyBlacksmith opened this issue Jun 24, 2021 · 1 comment
Open

MODULES key not found for @template #117

BeastyBlacksmith opened this issue Jun 24, 2021 · 1 comment

Comments

@BeastyBlacksmith
Copy link

maybe I'm using it wrong, but

module Foo

@template MODULES = Foo
end

resultes in

ERROR: LoadError: KeyError: key :MODULES not found
@MichaelHatherly
Copy link
Member

From what I recall it's meant to work in the following way: @template MODULES = "..." defines a template in the top module that can be used in any submodules by using @template MODULES = ParentModule. Using it to refer to itself can't work. That's what I vaguely remember it being meant to do anyway.

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

2 participants