Roda v1.0.0 Release Notes
Release Date: 2014-08-19 // over 9 years ago-
Don't have :extension hash matcher force a terminal match (jeremyevans)
โ Add :content option to view method in render plugin to use given content instead of rendering a template (jeremyevans)
โ Add :escape option to render plugin for using erb templates where <%= %> escapes and <%== %> does not (jeremyevans)
๐ Make multi_route plugin route("route_name") method a request method instead of an instance method (jeremyevans)
Add r.multi_route method to multi_route plugin, for dispatching to named route based on first segment in path (jeremyevans)
๐ Allow non-GET requests to use r.redirect with no argument, redirecting to current path (jeremyevans)
โ Add head plugin, for handling HEAD requests like GET requests with an empty body (jeremyevans)
โก๏ธ Optimize consuming patterns by using a positive lookahead assertion (jeremyevans)
โ Add not_allowed plugin, for automatically returning 405 Method Not Allowed responses (jeremyevans)
โก๏ธ Optimize match blocks with no arguments (jeremyevans)
โ Add content_for plugin, for storing content in one template and retrieving it in another (jeremyevans)
โ Add render_each plugin, for rendering a template for each value in an enumerable (jeremyevans)
โ Add backtracking_array plugin, allowing array matchers to backtrack if later matchers do not match (jeremyevans)
โ Add :all hash matcher, allowing array matchers to include conditions where you want to match multiple conditions (jeremyevans)
โ Add json plugin, allowing match blocks to return arrays/hashes, returning JSON (jeremyevans)
โ Add view_subdirs plugin, for setting a subdirectory for views on a per-request basis (jeremyevans)
๐ Allow default halt method to take no arguments, and use the current response (jeremyevans)
โ Add symbol_views plugin, allowing match blocks to return a template name symbol (jeremyevans)
Add per_thread_caching plugin, for using separate caches per thread instead of shared thread-safe caches (jeremyevans)
โ Add hash_matcher class method, for easily creating hash match methods (jeremyevans)
โ Add symbol_matchers plugin, for using symbol-specific matching regexps (jeremyevans)
โ Add csrf plugin for csrf protection using rack_csrf (jeremyevans)
โก๏ธ Optimize r.is, r.get, r.post and similar methods by reducing the number of Array objects created (jeremyevans)
๐ Support RequestClassMethods and ResponseClassMethods in plugins (jeremyevans)
โ Add Roda::RodaCache for a thread safe cache, currently used for match patterns, templates, and plugins (jeremyevans)
โก๏ธ Optimize matching by caching consume regexp for strings, regexp, symbol, and :extension matchers (jeremyevans)
โ Add r.root for GET / requests, for easier to read version of r.get "" (jeremyevans)
โก๏ธ Optimize r.is terminal matcher, remove :term hash matcher (jeremyevans)
๐ Make flash plugin no longer depend on sinatra-flash (jeremyevans)
๐ Move version file to roda/version so it can be required separately without loading dependencies (jeremyevans)