Sha256: 58132462fb9725208d112076326331a459637229ce5beadbd64f49bfe9308e78

Contents?: true

Size: 736 Bytes

Versions: 52

Compression:

Stored size: 736 Bytes

Contents

= New Features

* A multi_view plugin has been added, for easily setting up routing
  for rendering multiple views:

    plugin :multi_view

    route do |r|
      r.multi_view(['foo', 'bar', 'baz'])
    end

    # or:

    route do |r|
      r.multi_view(/(foo|bar|baz)/)
    end

    # or:

    regexp = multi_view_compile(['foo', 'bar', 'baz'])
    route do |r|
      r.multi_view(regexp)
    end

    # all are equivalent to:

    route do |r|
      r.get 'foo' do
        view('foo')
      end
 
      r.get 'bar' do
        view('bar')
      end

      r.get 'baz' do
        view('baz')
      end
    end

= Other Improvements

* The content_for plugin now supports haml templates.  Previous only
  erb templates were supported.

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
roda-3.28.0 doc/release_notes/2.8.0.txt
roda-3.27.0 doc/release_notes/2.8.0.txt
roda-3.26.0 doc/release_notes/2.8.0.txt
roda-3.25.0 doc/release_notes/2.8.0.txt
roda-3.24.0 doc/release_notes/2.8.0.txt
roda-3.23.0 doc/release_notes/2.8.0.txt
roda-3.22.0 doc/release_notes/2.8.0.txt
roda-3.21.0 doc/release_notes/2.8.0.txt
roda-3.20.0 doc/release_notes/2.8.0.txt
roda-3.19.0 doc/release_notes/2.8.0.txt
roda-3.18.0 doc/release_notes/2.8.0.txt
roda-3.17.0 doc/release_notes/2.8.0.txt
roda-3.16.0 doc/release_notes/2.8.0.txt
roda-3.15.0 doc/release_notes/2.8.0.txt
roda-3.14.1 doc/release_notes/2.8.0.txt
roda-3.14.0 doc/release_notes/2.8.0.txt
roda-3.13.0 doc/release_notes/2.8.0.txt
roda-3.12.0 doc/release_notes/2.8.0.txt
roda-3.11.0 doc/release_notes/2.8.0.txt
roda-3.10.0 doc/release_notes/2.8.0.txt