-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a #routes
or #link_to
Tag
#117
Comments
@natebird @tonyarnold @ts @shnhrrsn |
+1 for this, in fact it feels like quite a blind spot in Vapor's type safety, the fact that URLs are all produced with string concatenation. Having a URL builder interface to the router, that is validated as much as possible, and then exposed in Leaf templates, would be really nice. Even in a small Vapor application I've wanted this quite a few times. I'll probably end up writing something for this myself, if it becomes generically applicable then I'll try and contribute it or at least get a gist up somewhere. |
Is your feature request related to a problem? Please describe.
I'm currently looking for a way to add my routes in my leaf templates
Describe the solution you'd like
I would like for a way to add routes to leaf templates
Describe alternatives you've considered
thought about hardcoding them but that is too tedious and it doesn't scale very well
Additional context
As an Example here is a Rails
The text was updated successfully, but these errors were encountered: