Roda 3.60.0 Released #282
jeremyevans
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Roda 3.60.0 has been released!
New Features
A link_to plugin has been added with a link_to method for
creating HTML links.
The simplest usage of link_to is passing the body and the location
to link to as strings:
The link_to plugin depends on the path plugin, and allows you to
pass symbols for named paths:
It also allows you to pass instances of classes that you have
registered with the path plugin:
To set additional HTML attributes on the tag, you can pass them as
an options hash:
If the body is nil, it will be set to the same as the path:
The plugin will automatically HTML escape the path and any HTML
attribute values, using the h plugin:
Other Improvements
of just the current rack release.
Thanks,
Jeremy
Beta Was this translation helpful? Give feedback.
All reactions