diff --git a/README.md b/README.md index 8df80c4..137b9ec 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,26 @@ mkdir -p ~/.local/share/typst/packages/local/template-web/ ln -s $(pwd) ~/.local/share/typst/packages/local/template-web/0.0.1 ``` +## Usage + Then to use it in your typst file: ```typst #import "@local/template-web:0.0.1": * + +#set document( + title: "TeTyTe", + author: "Me!", + description: "Test of the TTT template", +) + +#show: webpage.with( + "http://test.example.com", +) + +#lorem(200) ``` + +See `test_template/main.typ` for an example. + +Test with `typst watch --features html --format html main.typ`.