Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for a Jinja online (or at least live) parser

Tags:

I'm having a hard time understanding how some of the Jinja directives are working. In order to run a few tests (and, eventually, share the results, jsfiddle style), I'd really appreciate to have some online parser, but couldn't find anything on the Web.

Does it even exist ?

like image 649
Anto Avatar asked Nov 22 '13 13:11

Anto


People also ask

What is the difference between Jinja and Jinja2?

from_string . Jinja 2 provides a Template class that can be used to do the same, but with optional additional configuration. Jinja 1 performed automatic conversion of bytes in a given encoding into unicode objects.

What is Jinja technique?

Jinja is similar to the Django template engine but provides Python-like expressions while ensuring that the templates are evaluated in a sandbox. It is a text-based template language and thus can be used to generate any markup as well as source code.


1 Answers

I ended up with building one myself. It's available on Github, and here is how it looks like: jinja live parser preview

like image 130
Anto Avatar answered Sep 19 '22 20:09

Anto