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