This is a technology that describes websites (sites) using configuration files. On user request, the configuration is built into a website and sent to the user.
Components/
Component/
Component.html
Component.css
Component.js
Layouts/
Layout/
Layout.html
Layout.css
Layout.js
Sites/
active-sites/
site-config.config
enabled-sites/
site-config.config (ln)
A request is received from a domain. The domain is looked up in the sites-enabled directory. When found, the site config is parsed by Python. The Python server looks up all the components, and layouts listed. The site is constructed using the components and layouts as configured. The site is sent to cache. The user gets the website.
The components, layouts, and sites should have first class support in the server. This involves setting up strong typing (though generic) for each. The API for reading files to and from the server should be opaque and secure. These functions must remain internal and inaccessible from user requests.
Description is power!
- Design and build documentation
- Build tests from documentation
- Build code to pass tests
- Build better tests
- Repeat 3 and 4 in a loop until tests match initial design
- Update documentation
Documentation should be done in Markdown and can be done by AI. (must be human reviewed)
The goal of documentation is to describe a function so well that looking directly at the code is not required to deeply understand it. Each function should list it's inputs, every step at which data is transformed, and it's outputs.
Commit with documentation or DO NOT COMMIT.
Documentation is hosted within a doc/ directory.