Skip to main content

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 file output/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


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 hashes)

Uploaded Source

Built Distribution

sssimp-0.0.2-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page