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 hashes)
Built Distribution
sssimp-0.0.4-py3-none-any.whl
(7.0 kB
view hashes)