Expected behaviour of render
when passing a nil
-valued parameter?
#418
Unanswered
JacobBeaudry
asked this question in
Q&A
Replies: 1 comment
-
Scopes are inherited through
Each node will inherit scopes set by its parent nodes in this tree, lower parent will hide higher parent's variables with same name. Though There maybe a bug for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering what the expected behaviour is, if one passes a
nil
value to a parameter, inrender
? e.g. iffile123
is:and one then renders
file123
, passingfoo
as anil
-valued parameter, e.g. in parent_file1:Should it return
or
?
And should anything change if, instead, we had, e.g. parent_file2 (in which the parameter
foo
is assigned to the value of the variablefoo
in parent_file2, in which it is not assigned (&, IINM, therefore defaults tonil
)?Hope this is clear. Thank you in advance for your time and help!
Beta Was this translation helpful? Give feedback.
All reactions