Super simple Jinja2 based staticsite generator.
Project description
StaticSite
Super simple static site builder.
- Create a folder called
src
. - Put your Jinja templates there.
- Run
python -m staticsite build --src src --target www
- Static site has been built and provided in
www
folder. - Create a
staticsite.yaml
file to specify variables and plugins.
mkdir src
cat << EOF >> src/.base.html
<!doctype html>
<html lang='en'>
<body>
<h1>Example</h1>
{% block content %}{% endblock %}
</body>
</html>
EOF
cat << EOF >> src/index.html
{% extends '.base.html' %}
{% block content %}
Hi
{% endblock %}
EOF
python -m staticsite build --target docs
tree
# .
# ├── src
# │ ├── .base.html # Files starting with . are ignored
# │ └── index.html
# │
# └── docs
# ├── index.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
staticsite-0.1.4.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for staticsite-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f115fd4ed3411ec58f9c5d980381f7a49f197dd8218326b73c749455968186e7 |
|
MD5 | ccdeff55174daba010e345c6ccb752ce |
|
BLAKE2b-256 | 41e2fb8cabff097d20d277c1855028cb5496ba9c46833a5543573ece9c88c0ba |