-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Spokes - Plugins on Steroids #693
Comments
Sounds amazing :) Is there a way to integrate it into plugins somehow instead? There's probably a lot of overlapping needs between spokes and plugins anyway so it might make sense if they're all the same thing? |
Rails specifically keeps the two strategies separate although you are correct that they do share similar functionality. I'd want to have them separate, but that is just my opinion. |
I've played with this idea. Not being able serve views/js/img/ out of the plugins folder was really limiting. The Multimodule plugin was the closest in terms of functionality I found. I (almost) starting writing a modular CMS with that idea. The concept was to have a "module loader" which was the required core, and then be able to select modules, a la Drupal: as they all lived in the |
Because it's easier to code the feature that way, or some other reason as well? |
I'd want to keep the backward compatibility of plugins so that we don't possibly lose plugins already developed. |
Ok, makes sense. |
@neokoenig there could be an |
What happens when you install 4 'spokes' each with their (slightly) different version of jQuery (for instance)? Also, loading order - it might be your app needs to load before another one to satisfy dependencies. |
Good questions. I'd like to start getting a list of them and work through each one before hand. |
I think that the public assets makes this trickier for sure. Would an implementation of spokes without that element get us 80% of the way into usefulness without all of the pain? RE: loading order, this is where |
@chrisdpeters that is certainly a possibility although I'm sure developers would be adding specific markup for styling / layout. |
haha, it would certainly make the job easier! |
I've updated the OP with a checklist of things that need to be done. I like chris' idea of just doing mvc logic and not fancy assets. |
Closing this as we're using the issue tracker for bugs only from now on. Thanks. |
I'd like to start chatting about a new features in wheels, namely self contained application logic that can be shared between developers with a single distribution. All logic in these self contained applications could be overridden if need be, including controller, model and views. It would be similar in scope to Engines in Rails. http://guides.rubyonrails.org/engines.html
Each spoke would have a folder structure similar to wheels and would include:
An update to event processes would be necessary to load spokes at an appropriate time to allow for the framework to load spoke specific settings before the application settings. An update would also be necessary for all controller, model and view paths to be one OR many items that would need to be looked through to find the appropriate logic to run.
Spokes, similar to plugins, would have a cfc to apply functionality to the core application.
There have been discussions on the group about functionality like this and I wanted to take the liberty of trying to name the feature and start a more in depth conversation about the possibilities and the scope of work necessary to complete such an undertaking.
The text was updated successfully, but these errors were encountered: