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

Config Mixin #398

Closed
wants to merge 3 commits into from
Closed

Config Mixin #398

wants to merge 3 commits into from

Conversation

gobsmack
Copy link

This is a small PR to move the config loading logic into a Mixin. This should make it easier to override the default behaviour of loading the config from a single file. By providing a custom mixin, one can easily load a config from a database, from a different URL, or by some other method. And, this can be done without modifying the core CMV code.

This does not address when a separate widget config filename is embedded in the config file itself. That will still perform a simple "require" for the widgetConfig.options.

… separating it from the HTML. Added error-handling if the config is not found. Updated handleError to account for config not found.
@DavidSpriggs
Copy link
Member

@gobsmack Update: we are reviewing this.

tmcgee added a commit that referenced this pull request Apr 29, 2015
@tmcgee
Copy link
Member

tmcgee commented Apr 29, 2015

I've added this config mixin to a new branch with additional Controller mixins for further discussion.

@DavidSpriggs
Copy link
Member

This will be coming. Closing PR as we will incorporate this via another branch.

@tmcgee tmcgee added this to the v1.4.0 milestone Nov 23, 2015
@tmcgee
Copy link
Member

tmcgee commented Nov 23, 2015

this mixin for the config file was included in PR #475

@tmcgee tmcgee removed this from the v1.4.0 milestone Mar 8, 2016
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.

3 participants