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
I'm proposing to build the routing functions (path and url) as javascript closures which will negate the need for any 3rd party libraries such as the FOSJsRoutingBundle.
If the parser were to provide the ability to define 'compiled functions' whereby instead of a function call, the behavior of the function is simulated in a closure or single use function.
The way that the route is comprised can be derived from the compiled route. Any need to share potentially sensitive routing information is negated by the fact that this would have been shared anyway as part of the template.
I'm happy to put some code to this if you're open to it.
The text was updated successfully, but these errors were encountered:
I'm proposing to build the routing functions (
path
andurl
) as javascript closures which will negate the need for any 3rd party libraries such as the FOSJsRoutingBundle.If the parser were to provide the ability to define 'compiled functions' whereby instead of a function call, the behavior of the function is simulated in a closure or single use function.
Take the following scenario:
The way that the route is comprised can be derived from the compiled route. Any need to share potentially sensitive routing information is negated by the fact that this would have been shared anyway as part of the template.
I'm happy to put some code to this if you're open to it.
The text was updated successfully, but these errors were encountered: