Ruby / Roda - Web Framework / Plugins / :symbol_views


Introduction

The :symbol_views plugin allows match blocks to return symbols, and consider those symbols as views to use for the response body.

So you can take code like:

r.root do
  view :index
end

r.is "foo" do
  view :foo
end

and DRY it up:

r.root do
    :index
  end

  r.is "foo" do
    :foo
  end

TODO: add more information and examples here.