all repos — py-vite @ 086bd7388515ac6ad12de7432be2d50f1f8d4bd6

the original vite, written in python

README.md (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
# Vite
A simple and mnml static site generator.

## Usage
```console
$ vite.py new <project-path>
```
Write your Markdown files in `pages/` and  
```console
$ vite.py build <project-path>
```

*OR*

```console
$ make.py  # at the project directory
```
Rendered HTML will be in `build/`

## Templating
Vite uses Jinja2 templating. A basic example would be: 
```html
<title> {{ title }} </title>

<body>
{{ body }}
</body>

<footer>
{{ footer }}
</footer>
```

## TODO

- [x] Templating
- [ ] CSS support
- [ ] Implement a simple HTTP server (_later_)
- [x] Add example site
- [ ] Basic config (`config.py`)