sanic-domonic-h5bp
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.
- domonic, the fiendishly good HTML generator library.
- Good old HTML5 Boilerplate.