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
How would you propose passing information from a template to the host application? We are considering using constructs similar to {% assign foobar 10 %}. However, currently, this sets the variable only in a local scope, which fails when there is a variable with the same name in the global scope. We would like the ability to reset the global scope variable directly from the template. Can this functionality be implemented, or is there a recommended approach to handle such scenarios?
The text was updated successfully, but these errors were encountered:
Thanks for link. However, it does not help or give guidance how to assign variables from the template so that they can be read back by the host application.
You will need to create your own tag for that. You might be able to override what assign does, but that could lead to unknown behavior for the common case.
How would you propose passing information from a template to the host application? We are considering using constructs similar to {% assign foobar 10 %}. However, currently, this sets the variable only in a local scope, which fails when there is a variable with the same name in the global scope. We would like the ability to reset the global scope variable directly from the template. Can this functionality be implemented, or is there a recommended approach to handle such scenarios?
The text was updated successfully, but these errors were encountered: