all repos — py-vite @ 89f4cff3d0871497f52b43901f691571dda96b6e

the original vite, written in python

docs: about templating
icyphox icyph0x@protonmail.com
Sat, 17 Mar 2018 14:50:20 +0530
commit

89f4cff3d0871497f52b43901f691571dda96b6e

parent

3366339167307aab074e6a82c11fd41521898335

1 files changed, 15 insertions(+), 1 deletions(-)

jump to
M README.mdREADME.md

@@ -17,9 +17,23 @@ $ 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 -- [ ] Templating +- [x] Templating - [ ] CSS support - [ ] Implement a simple HTTP server (_later_) - [x] Add example site