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
Currently, the TemplateTag.run function gets the Context object as it's first argument, followed by each argument sent to the template tag as a positional parameter.
This is a bit error prone, since you have to remember and make sure that the list of TemplateTag.args is in the same order as the function arguments. Collecting the arguments into a JavaScript object / class with named properties would make it easier to pass them around and interact with them safely.
For backwards compatibility, this should probably be accessed via a method on the Context interface. Maybe something like this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Currently, the
TemplateTag.runfunction gets theContextobject as it's first argument, followed by each argument sent to the template tag as a positional parameter.This is a bit error prone, since you have to remember and make sure that the list of
TemplateTag.argsis in the same order as the function arguments. Collecting the arguments into a JavaScript object / class with named properties would make it easier to pass them around and interact with them safely.For backwards compatibility, this should probably be accessed via a method on the
Contextinterface. Maybe something like this?All reactions