sanic-domonic-h5bp

Pipenv - Python version Imports: isort Code style: black

A template repository implementing HTML5 Boilerplate 8.0 in Sanic using the Domonic framework.

If you need frontend interactivity, this template goes well with e.g. HTMX and HyperScript rather than your run-of-the-mill bloated JS framework du jour.


?
Requirements

  • python-3.8
  • pipenv


?
Running

git clone [email protected]:pyxy-dk/sanic-domonic-h5bp.git

cd sanic-domonic-h5bp

pipenv install --dev

pipenv shell

sanic src.sanic_domonic_h5bp.app

Note that Sanic does not officially support running on Windows.


?️
File mapping from H5BP

The files from a standard download of H5BP 8.0 maps to the following files in this template project:

h5bp
│
├── css
│   ├── main.css                      ⇒ ./src/sanic_domonic_h5bp/static/css/
│   └── normalize.css                 ⇒ ./src/sanic_domonic_h5bp/static/css/
│
├── doc                               ¬ Not included
│
├── img                               ⇒ ./src/sanic_domonic_h5bp/static/img/
│
├── js
│   ├── vendor
│   │   └── modernizer-3.11.2.min.js  ⇒ ./src/sanic_domonic_h5bp/static/js/vendor/
│   ├── main.js                       ⇒ ./src/sanic_domonic_h5bp/static/js/
│   └── plugins.js                    ⇒ ./src/sanic_domonic_h5bp/static/js/
│
├── .editorconfig                     ⇒ expanded in ./.editorconfig
├── .gitattributes                    ⇒ expanded in ./.gitattributes
├── .gitignore                        ⇒ expanded in ./.gitignore
├── .htaccess                         ¬ Not included
├── 404.html                          ⇏ Implemented in domonic
├── browserconfig.xml                 ⇒ ./src/sanic_domonic_h5bp/static/
├── favicon.ico                       ⇒ ./src/sanic_domonic_h5bp/static/
├── humans.txt                        ⇒ ./src/sanic_domonic_h5bp/static/
├── icon.png                          ⇒ ./src/sanic_domonic_h5bp/static/
├── index.html                        ⇏ Implemented in domonic
├── LICENSE.txt                       ⇒ ./LICENSE
├── package.json                      ¬ Not included
├── package-lock.json                 ¬ Not included
├── robots.txt                        ⇒ ./src/sanic_domonic_h5bp/static/
├── site.webmanifest                  ⇒ ./src/sanic_domonic_h5bp/static/
├── tile.png                          ⇒ ./src/sanic_domonic_h5bp/static/
└── tile-wide.png                     ⇒ ./src/sanic_domonic_h5bp/static/


?
Thanks to

  • The Sanic web server and framework.
  • , the fiendishly good HTML generator library.
  • Good old HTML5 Boilerplate.

GitHub

GitHub - pyxy-dk/sanic-domonic-h5bp at pythonawesome.com
HTML5 Boilerplate implemented with Domonic in Sanic. - GitHub - pyxy-dk/sanic-domonic-h5bp at pythonawesome.com