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.2.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file sssimp-0.0.2.tar.gz
.
File metadata
- Download URL: sssimp-0.0.2.tar.gz
- Upload date:
- Size: 3.9 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 | e5c1090f5665abb9dad1489e6ab86825fcdc532c90f93858ae4bf164ca0dd2d1 |
|
MD5 | a870457e202e669eb9c8d0578dd75eb5 |
|
BLAKE2b-256 | 8ee95d1ace524677e50680017aa069e8d5d0719bdd4d976aabfb956c5a571784 |
File details
Details for the file sssimp-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: sssimp-0.0.2-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 | d61dbc05af92dd428f79da22e882f81616ddc239c4112ca23c4217324f16b602 |
|
MD5 | 8d8b9bfa2430c157ddae396739089c04 |
|
BLAKE2b-256 | 0d3cc70df1f283c2cdfa12af3df6c114b01b4a4d009b71233bf62bc57b997042 |