Skip to main content

legoman

logo

A tiny static web generator in 60 lines.

Supports TOC, image captions, LaTeX, code highlighting and tables.

Demo

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

Metadata

Release files for legoman 2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for legoman 2
File Size Uploaded
legoman-2.tar.gz 132.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for legoman 2
File Interpreter ABI Platform
legoman-2-py3-none-any.whl Python 3 none any Details

Total release size: 267.1 kB

Release files / legoman-2.tar.gz

Download URL legoman-2.tar.gz
Size 132.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a0e5d3908ea1bdfd3677f92307226d4c6e45ffd2b29ff50d055e8cf094acd806
BLAKE2b-256 checksum
How to use checksums
244aa569648cd5731bcca1986c48282cc6445a37583bd5b8aa40ff37b303250b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9

Release files / legoman-2-py3-none-any.whl

Download URL legoman-2-py3-none-any.whl
Size 134.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3838b5cd8f676b7b93b860052c6c139a12dc86699616206bc3a260ab42641334
BLAKE2b-256 checksum
How to use checksums
e900f49e2d287b98e092a93558127e7d3437d26bf98bc1749c73b8e1725f40cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9

Release history Release notifications | RSS feed

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

This release

2 This release

2 release files

1.post1

1 release file

1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page