A simple static website generator
Project description
sssimp :snake:
Simple Static Site Inductor Made in Python
How to use
Create a folder called input
, inside create a folder called content
and an
empty file called __init__.py
Running python -m sssimp
will generate output
using the content
folder
Generators
- HTML files from the content folder will be parsed as Jinja2 templates, they
can use templates defined in the
input/templates
folder - CSS files in
input/content/css
will be merged together in a single fileoutput/bundle.css
- Markdown files with the suffix .md from the content folder will be parsed to
HTML and passed to a template with the same name as their parent folder as the parameter
markdown
Example:./input/content/post/hello-world.md
->./output/post/hello-world.html
Using the template./input/templates/post.html
Generated with context{'markdown': 'the markdown file converted to HTML'}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sssimp-0.0.3.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file sssimp-0.0.3.tar.gz
.
File metadata
- Download URL: sssimp-0.0.3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73b58bb867156861e5fab53e93c02baf8893e8b5c11484c455268750e22949b8 |
|
MD5 | 6559c8408dfedccb2fed2064cdfeca53 |
|
BLAKE2b-256 | 975543945e44c7f815f9198275cc6bf50b5f94bf4144eed52199f3dbb98c5391 |
File details
Details for the file sssimp-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: sssimp-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eeabe4365f1d125e64106c8f9c9d884676b531d4ea247c0aab2846b19dbb89c |
|
MD5 | 87d5cbfb25756e427d97d50c5c43f474 |
|
BLAKE2b-256 | 7dbd44e7f25dfd10e1e931991d1f1b1042d2e0825e53324cc0f4f2f7b8649154 |