Template for making an invoice. Outputs HTML and PDF. Uses TOML for information, e.g.,
id = "001"
amount = "300"
issue_date = "2023-11-30"
due_date = "2023-12-30"
[from]
name = "alifeee"
[to]
name = "Garibaldi"
[[items]]
title = "Biscuit Generation"
time_h = "1.5"
charge = "150"
# ...
...creates...
py -m venv env
pip install -r requirements.txt
playwright install
First, add invoice.toml
to the root of the repository, that looks like invoice.example.toml
. Then,
python build.py
This watches the template file and the TOML file, and rebuilds the build files when they change. For proper hot-reload, use VSCode's live server extension on the output build/invoice.html
file.
python build.py --hot