Skip to main content

a tiny static website generator

Project description

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

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

legoman-2.tar.gz (132.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

legoman-2-py3-none-any.whl (134.9 kB view details)

Uploaded Python 3

File details

Details for the file legoman-2.tar.gz.

File metadata

  • Download URL: legoman-2.tar.gz
  • Upload date:
  • Size: 132.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for legoman-2.tar.gz
Algorithm Hash digest
SHA256 a0e5d3908ea1bdfd3677f92307226d4c6e45ffd2b29ff50d055e8cf094acd806
MD5 29aa303a0dcac64179ea7768eaa96c1a
BLAKE2b-256 244aa569648cd5731bcca1986c48282cc6445a37583bd5b8aa40ff37b303250b

See more details on using hashes here.

File details

Details for the file legoman-2-py3-none-any.whl.

File metadata

  • Download URL: legoman-2-py3-none-any.whl
  • Upload date:
  • Size: 134.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for legoman-2-py3-none-any.whl
Algorithm Hash digest
SHA256 3838b5cd8f676b7b93b860052c6c139a12dc86699616206bc3a260ab42641334
MD5 6071a8701dcb383224396568a5bec369
BLAKE2b-256 e900f49e2d287b98e092a93558127e7d3437d26bf98bc1749c73b8e1725f40cb

See more details on using hashes here.

Supported by

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