class Roda::RodaPlugins::HashRoutes::DSL
def view(path, template)
If path is given as a string, it is prefixed with a slash.
used, and will return a 404 if another request method is used.
will render the view with the given name if the GET method is
Use the segment to setup a path in the current namespace that
def view(path, template) path = path == true ? "" : "/#{path}" @roda.hash_path(@namespace, path) do |r| r.get do view(template) end end end