How to Improve The Jinja2 Experience with FastAPI
While FastAPI is a great first choice for any API development in Python, it's often not considered when your primary goal is to use Jinja2 templates to return HTML to the user. It''s hard to match the Ecosystem and support that comes with Flask, but it's easy to get started.
Generating Blog Frontmatter
I recently began the process of migrating my small blog from Ghost to a static site build with Nuxt. As apart of the process I wanted to create a small script that would automate some of the basic metadata creation the Nuxt can use to generate cards and sort content. Luckily, frontmatter in markdown is just yaml, making it easy to parse and manipulate.
Serving SPAs and API With Caddy v2
As part of my on going development for Mealie, a self hosted recipe manager, I needed to split the static files from the API to simplify deployment and get some clunky code out of the FastAPI backend. Instead of using the traditional Nginx configuration I decided to use a newer web server Caddy to handle requests.