Another SSG
Project description
htsg - another SSG
"htsg" is a minimal SSG (Static Site Generator).
This helps creating PURE HTML sites.
Requirements
- Python3 (3.6+)
Install
pip install htsg
Usage
Here is a brief explanation. Also read the source.
Example
visit example
Generate site
Run in shell:
htsg
Run htsg -h
to show more options.
Or, you can use in Python script:
import htsg
astdir = "./assets"
tpldir = "./templates"
distdir = "./dist"
cfgfile = "./config.toml"
htsg.generate(astdir, tpldir, distdir, cfgfile)
Run development server
For developping, htsg has HTTP server. It watches files and regenerates site when sources changed.
Run in shell:
htsg -s
Run htsg -h
to show more options.
Or, in Python script:
import htsg
host = "0.0.0.0"
port = 8000
astdir = "./assets"
tpldir = "./templates"
distdir = "./dist"
cfgfile = "./config.toml"
htsg.serve(host, port, astdir, tpldir, distdir, cfgfile)
Release note
v1.0.0 (2022/05/13)
Initial release
License
This project is under the MIT-License.
See also LICENSE.
Author
Laddge
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
htsg-1.0.0.tar.gz
(4.9 kB
view details)
Built Distribution
htsg-1.0.0-py3-none-any.whl
(5.5 kB
view details)
File details
Details for the file htsg-1.0.0.tar.gz
.
File metadata
- Download URL: htsg-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd509efa9a74b2616d3bc25b9f524e2ff5a40585249f7c0491c6623bc1667315 |
|
MD5 | 2b2550528acf5b830dc730b15efec6c6 |
|
BLAKE2b-256 | 2eed5f13cb71598c8929411fa7bf901fbcd240f63ba5b57a6bac81b35ebeaa3c |
File details
Details for the file htsg-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: htsg-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dc61efeb5f20159bdb2bc9894764b58b40c8b4b44c6e56e174933c2f5ae14c2 |
|
MD5 | 9a7e6086a722569a47845e18e80ec374 |
|
BLAKE2b-256 | 0a7fdfcfd2413677615e02cbedd0775a60797197173215992377ffd4080b0734 |