I am starting to build a project and I am at stage of selecting right framework for that. Aurelia looks good and simple. I like it. And I have questions.
I’ am writing sort of CMS like Joomla but with this SPA technologies and built-in advanced CCK. The likeness of Joomla in regard of extensions. I want 3d party developers to be able to extend functionality of my application very easily. The end users install those extensions through sort of extensions market. It simply copy client and server side to user application instance. One extension is one folder.
Now about routing. I need sort of dynamic routs loader. I’ll have only one URL pattern for my application.
/[ext_name]/* . The first segment will be always a name of an extension. Even home page will be an extension
/home . So the
/ url will be always redirected to
/home . I want to be able to parse URL, get first segment and load all routes of that extensions.
Lets say there is URL
/page/25 so I know this is
page extension and it has path
/ext/page/index.js that contain all routes and loads all required components of that extension.
I want that developers define routes with
config.map the Aurelia way and not invent my own convention for that.
When Aurelia was released first I did a test and that was successfull. I tried to this recently without any lack. I believe it is because Webpack. I sould use any loading system without webpack. Although it is strange and unlogical. Why cannot create a bundle of only first files needed and then load the rest dynamicaly. I am not familiar with webpack but I thought that is what it is doing but it looka like it is alternative loading technology, and it does not support dynamic loads.
Would it be possible to achieve? In documentation I see that I can navigationStrategy or Unknown routes that have potential in my opinion but I am not sure.
Would you say if what I want will be possible and if yeas what are keywords? Where to look for the answer?