a tiny static website generator
Project description
legoman
A tiny static web generator in 60 lines.
Supports TOC, image captions, LaTeX, code highlighting and tables.
Usage
pip install legoman
# in an empty directory
legoman init
make html
# run devserver (requires inotify-tools)
make devserver
How it works
.md
files are rendered using the template specified in their frontmatter.j2
files are rendered with Jinja2. They can loop over.md
files and access their metadata- all other files are symlinked to
output/
For example, the demo content/
:
content
├── codehilite.css
├── index.j2
├── projects
│ ├── bar_proj
│ │ └── index.md
│ └── foo_proj
│ ├── cheetos_small.png
│ └── index.md
└── styles.css
yields this output/
output
├── codehilite.css
├── index.html
├── projects
│ ├── bar_proj
│ │ └── index.html
│ └── foo_proj
│ ├── cheetos_small.png
│ └── index.html
└── styles.css
See also
- Hugo - similar idea, but written in Go and uses Go's templating engine
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
legoman-1.post1-py3-none-any.whl
(93.6 kB
view hashes)
Close
Hashes for legoman-1.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3562490180971abff026fab6ffae47ce2a21eef50baf07734b464c6ff67fefd |
|
MD5 | bb865e717b85b29e395f9eeb7deb246a |
|
BLAKE2b-256 | 331cf872bc87cd26802de195d5dc9031ccabb433ca23c1c9ef6705ff76e9aa49 |