module Roda::RodaPlugins::MultiView::ClassMethods

  1. lib/roda/plugins/multi_view.rb

Methods

Public Instance

  1. multi_view_compile

Public Instance methods

multi_view_compile(array)

Given the array of view template names, return a regexp that will match on any of the names and capture the matched name.

[show source]
   # File lib/roda/plugins/multi_view.rb
65 def multi_view_compile(array)
66   /(#{Regexp.union(array)})/
67 end