Roda 3.50.0 Released

34 views
Skip to first unread message

Jeremy Evans

unread,
Nov 12, 2021, 5:58:11 PM11/12/21
to Roda
Roda 3.50.0 has been released!

= New Features

* An inject_erb plugin has been added, adding an inject_erb method
  that allows for injecting content directly into the template output
  for the template currently being rendered.  This allows you to more
  easily wrap blocks in templates, by calling methods that accept
  template blocks and injecting content before and after the block.

* A capture_erb plugin has been added, adding a capture_erb method
  for capturing a template block in an erb template and returning
  the content appended during the block as a string, instead of
  having the content of the template block be included directly into
  the template output.  This can be combined with the inject_erb
  plugin to inject modified versions of captured blocks into template
  output.

* The hash_routes plugin now allows calling hash_branch and hash_path
  without a block in order to remove the existing route handler. This
  is designed to be used with code reloading libraries, so that if a
  route file is deleted, the related hash branches/paths are also
  removed, without having to reload all route files.

Thanks,
Jeremy

adam.me...@gmail.com

unread,
Nov 12, 2021, 9:38:21 PM11/12/21
to Roda
Hi Jeremy,

The addition of the ERB plugins are a _very_ nice addition. These types of methods have been something I copy/paste to every project it seems.

Cheers.

Adam
Reply all
Reply to author
Forward
0 new messages