Skip to content

Needs automatic view helpers for resources #7

@hunterloftis

Description

@hunterloftis

Not sure about the best API for this, consider these:

routes.js:

app.resource('users'); 

view.jade:

resource_uri('users', 'create');
resource_url('users', 'show', 'uuid')

or maybe, since app is already injected into the view:

app.controllers.users.create.url()
app.controllers.users.show.url('uuid')

app.controllers.users.url() // generic "/users" so you can concat custom routes to the end

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions