DEV Community
•
2026-04-23 08:21
Day 80 of #100DaysOfCode — Templates in Flask + Jinja2 Basics
Yesterday I covered routes, requests, and responses. Returning plain strings and JSON is fine for APIs, but for actual web pages, you need HTML, and writing HTML inside Python strings is a nightmare. Today, I covered Flask's templating system, which uses Jinja2, and learned how to serve static files. Coming from Django, this felt immediately familiar because Django's template language is also base...