Skip to content

Add an option to overload the default F2 dependency loader #154

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

Closed
markhealey opened this issue Feb 27, 2014 · 4 comments
Closed

Add an option to overload the default F2 dependency loader #154

markhealey opened this issue Feb 27, 2014 · 4 comments

Comments

@markhealey
Copy link
Member

We've received a number of requests for script/style loader override hooks be added to F2. I've written this as a story:

As a developer using F2, I want to be able to apply a custom script and/or style loader for F2 to request an app’s dependencies as defined in the AppManifest. This script and/or style loader would replace the built-in default App dependency loader in F2.

The proposed solution is as follows:

  • Add two new properties to the F2.ContainerConfig called loadStyles and loadScripts both of which are optional.
  • Both loadStyles and loadScripts would be functions passed an array of dependencies during the registration of an app.

@montlebalm actually wrote a lot of this code ~6 months ago, so we're in the process of digging that up and revisiting.

Spec updates to come.

@markhealey
Copy link
Member Author

I meant to add this will be released in version 1.3.3 leapfrogging the proposed 1.4 work-in-progress tracked in #142.

@ilinkuo
Copy link

ilinkuo commented Mar 1, 2014

Thanks for making this visible.

@markhealey
Copy link
Member Author

FYI we are planning to release 1.3.3 this week.

@markhealey markhealey added this to the 1.3.3 milestone Mar 5, 2014
@markhealey
Copy link
Member Author

Closed with #155

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

No branches or pull requests

2 participants