C#C
C#4y ago
GNUGradyn

❔ Rendering Jinja template in C sharp

Hello, I have a TON of Jinja templates that were designed for an older version of a microservice that was written in python. I'm trying to update a newer version which is written in C# to support these templates. Rather then rewrite the hundreds of templates to use a C# native templating engine, I'd like to somehow create a wrapper. A couple ideas I had:

  • Make a console renderer for jinja in Python
  • Compile Jinja with IronPython and just use that
What is the best way to go about this? If there is an existing solution that would obviously be preferrable but the only one I could find was from 2013
Was this page helpful?