This commit makes the name parameter for included maps optional. In addition a namespace can be added to a map.
Example
ARTICLE_ROUTES = Marten::Routing::Map.draw(:article) do # :article is the namespace
path "/", ArticleList, name: "list"
path "/new", ArticleNew, name: "new"
end
Marten.routes.draw do
path "/articles", ARTICLE_ROUTES # will add article:list and article:new
end
This commit makes the
name
parameter for included maps optional. In addition a namespace can be added to a map.Example
Closes #108