Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-2297

Create Fauxton links functionality

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Fauxton
    • None
    • Committers Level (Medium to Hard)

    Description

      Currently we hard code the urls for the app. So our templates and code is littered with urls. This is not a great idea. I propose we create a links object that can generate urls for us.

      This would be similar to how Ruby on Rails works with its url functionality. I think how we should do it is have a Fauxton.links object. We can then ask it for a url e.g. Fauxton.links.allDocs(databaseName, context); it would then return the url for the all docs page of the database.

      What would also be important is to have the context argument so we can specify if its for the web or to fetch an object. Like how we use the context for models.

      Attachments

        Issue Links

          Activity

            People

              garren Garren Smith
              garren Garren Smith
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: