Skip to content

Add automatic route recognisation #6

Open

Description

@robwebdev

If possible, staticboot should grab the paths from routes defined in the router and crawl those, removing the need to duplicate them in the config.

Activity

  1. locks commented on Jan 15, 2017

    @locks

    I'll try to look into this soon. For routes with dynamic segments, I was thinking of defining the array of possible values, maybe? Have to play around with it.

  2. robwebdev commented on Jan 18, 2017

    @robwebdev
    OwnerAuthor

    @locks That would be awesome. The array idea matches what I had in mind. I hacked around on this branch, maybe that would be useful at least as a reference.

  3. acorncom commented on Apr 21, 2017

    @acorncom

    Hey @robwebdev, appreciate your work here. @locks and I continue to have dreams of using this add-on in a variety of places (including the Ember guides). Was looking at what you have on your spike above and had a different idea for how we might get to the needed info. I wrote out high-level pseudo code on my branch (acorncom@17e2e9c) with the stuff of interest being here: https://github.com/acorncom/ember-cli-staticboot/blob/17e2e9c2eeaab2bb97c1f54acf36972e5cd30e77/lib/broccoli/staticboot.js#L43-L64

    Do you guys think this might be a possibly option to pursue? Would love to get more eyes on it, as it looks like a lot of work to do ... 😀 The handler state we need to be able to call Router.generate() seems buried in there fairly deeply ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions