Skip to content

About

A fast and modular configuration (as description) to rendered website built in Python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website from Configuration on Request

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.

Structure

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)

Pipeline

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.

Python Server

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.

Development Cycle

Description is power!

  1. Design and build documentation
  2. Build tests from documentation
  3. Build code to pass tests
  4. Build better tests
  5. Repeat 3 and 4 in a loop until tests match initial design
  6. Update documentation

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.

Commits

Commit with documentation or DO NOT COMMIT.

Documentation is hosted within a doc/ directory.

About

A fast and modular configuration (as description) to rendered website built in Python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages