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
Not a bug, just a query really. In Sinatra it has a helpers method where we can add any custom helpers we may have, I used this a lot for is_logged_in, etc...
In Kemal is the idea we would just have a file of these anonymous functions, as when called from a route we will still be in the request's scope gate and can access all the methods/vars we would expect (request, session, etc...) ? This is of course, also possibly in Ruby, but the explicit helpers method Sinatra provides helps keep things more explicit without leaking scope.
Many Thanks.
The text was updated successfully, but these errors were encountered:
Not a bug, just a query really. In Sinatra it has a helpers method where we can add any custom helpers we may have, I used this a lot for is_logged_in, etc...
In Kemal is the idea we would just have a file of these anonymous functions, as when called from a route we will still be in the request's scope gate and can access all the methods/vars we would expect (request, session, etc...) ? This is of course, also possibly in Ruby, but the explicit helpers method Sinatra provides helps keep things more explicit without leaking scope.
Many Thanks.
The text was updated successfully, but these errors were encountered: