Skip to content

sinatra-namespace: cannot set :layout #1254

Closed
@mkaito

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.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions