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 we define JavaScript global variables in html templates and set them by php setVariable() function. So the developer has to set them twice(html and php) and when changing, thrice(html, php, js). Moreover we may have many variables that make the template dirty.
I think we should set them in a single variable for example CONST that is an array of those variables. A simple implementation may looks like this:
So we have just single line of code in our template and can manage variables easily.
An enhancement is to move them to the core and define variables by an API like this:
The text was updated successfully, but these errors were encountered: