You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation on variables states The <$...> syntax can be used to refer to a variable. At that point in the documentation subroutines are not introduced yet. So it's easy to assume this refers to Raku variables accessible in the context of the render-template() call.
From my experience this is not how it works. Skimming through the webapp tests, there are no tests for this either. The only tests there are test accessing template subroutine parameters.
If I'm right with this, then the documentation should be more clear on what kind of variables can actually be accessed.
The text was updated successfully, but these errors were encountered:
The documentation on variables states
The <$...> syntax can be used to refer to a variable.
At that point in the documentation subroutines are not introduced yet. So it's easy to assume this refers to Raku variables accessible in the context of therender-template()
call.From my experience this is not how it works. Skimming through the webapp tests, there are no tests for this either. The only tests there are test accessing template subroutine parameters.
If I'm right with this, then the documentation should be more clear on what kind of variables can actually be accessed.
The text was updated successfully, but these errors were encountered: