Architect the UI loader component
Define an architecture for the UI loader component. The UI loader fetches the UI bundle from a URI (either a local file or URL), downloads it in the case it's a URL, extracts its contents, and inserts the files into a virtual file catalog. The catalog is then used by subsequent components in the pipeline to assemble the site.
All the files present in the bundle should be put into this catalog. The catalog should partition the page templates (i.e., layouts), template partials, and template helpers from all the other files. Doing so allows the page generator to locate the template files so it can apply the appropriate template to each file in the pages collection. All the other files in the UI catalog are expected to be passed through as is to the output.
- Define behavior of UI loader component
- Define API methods, inputs, and outputs
- Decide the name of the package
- Define the state, if any, the component maintains