jinja2 + weasyprint — Easy Playground
Template HTML reports then render to PDF
Getting started with jinja2 + weasyprintRun locally
Install
pip install jinja2 weasyprintPython CodeRun locally
Expected Output
# Expected output shown below # (Run locally with: jinja2 + weasyprint)
jinja2 + weasyprint is a third-party package. Template HTML reports then render to PDF. Install with: pip install jinja2 weasyprint
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?