Closed
Description
What's the logic behind the check at line 282? It seems you can, in fact, only set :views
inside a namespace.
I'd like to set the layout for an entire namespace, in this case a CMS-like backend. And I'd like to do so without having to pass the same :layout
argument to the erb
method every time.
EDIT: Apparently set :layout
is not a thing at all. Perhaps it should?
EDIT EDIT: Seems to be set :erb, :layout => :something
instead, to set the default layout. But that has sinatra-namespace
complaining about set :erb
, which brings me back to the question above.