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

Behavior change: template invocation not inferring model name #374

Open
jphiloon opened this issue Feb 8, 2022 · 1 comment
Open

Behavior change: template invocation not inferring model name #374

jphiloon opened this issue Feb 8, 2022 · 1 comment
Assignees

Comments

@jphiloon
Copy link

jphiloon commented Feb 8, 2022

v2.0.4:

Used to be that this would work

organization/_org_lite.gson:
model { Organization: org } ...
user.gson:
org tmpl."/organization/org_lite"(user.org)

Now the model must be specified explicitly:

user.gson:
org tmpl."/organization/org_lite"(org: user.org)

@jphiloon
Copy link
Author

More info: this only seems to be the case when a template is calling another template - but not in all situations. I haven't narrowed down the exact conditions under which the model is not inferred correctly.

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