I built a VS Code extension to preview Jinja2 templates in REAL-TIME (and it runs real Python!) #2897
Keshav-Madhav
started this conversation in
Extension Show and Tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Git,
I've been grinding on this for a while and it's finally OUT!!!
It’s a VS Code extension called Live Jinja Renderer. It's designed to kill that awful "save, switch, run, check, repeat" loop we all go through when writing templates.
Here are the links upfront:
What My Project Does
It gives you a live-preview panel inside VS Code that shows your rendered Jinja2 template... as you type.
It's got all the stuff I wanted for my own workflow:
Target Audience
Basically, anyone who writes Jinja templates in VS Code and is tired of guessing the output.
It's intended to be a robust, daily-driver tool, not just a toy project.
Comparison (Why this is different)
This is the main part: No fake JS ports.
Most other "Jinja" previewers I've found are just JavaScript-based simulators. They don't support the full Jinja syntax, custom filters, or Python logic, so the preview is just an approximation.
My extension runs real Python Jinja2 inside VS Code using Pyodide.
This means what you see in the preview panel is exactly what you will get in your production Python environment. It's an actual interpreter, not a simulator.
Jinja is everywhere now and I was sick of the broken workflow. So I built this to fix it.
Go try it out and tell me what breaks. 😂 PRs are welcome!
Beta Was this translation helpful? Give feedback.
All reactions