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.4.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file sssimp-0.0.4.tar.gz
.
File metadata
- Download URL: sssimp-0.0.4.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 | db06599d3e6b96044c3528d0bad805c4836e2239ade8499e3b0b061eca170608 |
|
MD5 | 713c48995777111b75e1dfafbc4ef484 |
|
BLAKE2b-256 | 63f685bda309641ebfcb5a405a1039df57d9689019493e8346b88fe52c3c0fe4 |
File details
Details for the file sssimp-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: sssimp-0.0.4-py3-none-any.whl
- Upload date:
- Size: 7.0 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 | 4c301076e2ea46a379e7a50358d02034a79cffc42d1387a1a40ab62f8d0e1a3a |
|
MD5 | a171dac0fe53568d4981ee3e54ccefd2 |
|
BLAKE2b-256 | 11484fcef7ec62213c03df4efb19cd42c2d64af5d490486baf329273bb3eedf3 |