Metadata-Version: 2.1
Name: legoman
Version: 1
Summary: a tiny static website generator
Home-page: https://github.com/evidlo/legoman
Author: Evan Widloski
Author-email: evan@evanw.org
License: GPLv3
Keywords: static web generator jinja2 markdown
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Requires-Dist: jinja2
Requires-Dist: markdown
Requires-Dist: python-markdown-math
Requires-Dist: httpwatcher
Requires-Dist: mdx-include
Requires-Dist: markdown-captions
Requires-Dist: ghp-import

# legoman

![logo](https://i.imgur.com/VJGdOWe.png)

A tiny static web generator in 60 lines.

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

[Demo](http://evanw.org/projects/legoman_demo)

# Usage

``` bash
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](https://github.com/gohugoio/hugo) - similar idea, but written in Go and uses Go's templating engine


