Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the mount API to accept a function for defining engine routes #19402

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jsturgis
Copy link

@jsturgis jsturgis commented Feb 12, 2021

This change updates the mount API method to accept a function similar
to how the route API currently works so that engine routes can be defined
in the host application's router.js file.

Some Ember applications utilize in-repo ember-engines strictly for their
lazy loading and code organization features and not for their isolation features.

In this context it makes more sense to define engine routes in the host application's
router.js file.

RFC

This change updates the mount API method to accept a function similar
to how the route API currently works so that engine routes can be defined
in the host application's router.js file.

Some Ember applications utilize in-repo ember-engines strictly for their
lazy loading and code organization features and not for their isolation features.

In this context it makes more sense to define engine routes in the host application's
router.js file.
@jsturgis jsturgis changed the title Change the mount method to accept a function for defining engine routes Change the mount API to accept a function for defining engine routes Feb 12, 2021
@rwjblue rwjblue marked this pull request as draft February 12, 2021 19:38
@kategengler
Copy link
Member

Is this still relevant? It is a draft PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants