Jinja Template Support
See original GitHub issueJinja is an extremely popular Python templating framework. It is used by many projects including Mozilla and Instagram.
An example of its syntax
{% extends "layout.html" %}
{% block body %}
<ul>
{% for user in users %}
<li><a href="{{ user.url }}">{{ user.username }}</a></li>
{% endfor %}
</ul>
{% endblock %}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:31
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Jinja — Jinja Documentation (3.1.x)
Jinja is a fast, expressive, extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax.
Read more >Jinja Documentation (3.0.x) » Template Designer ...
Jinja supports putting often used code into macros. These macros can go into different templates and get imported from there. This works similarly...
Read more >Jinja Documentation (3.0.x)
Jinja is a fast, expressive, extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. Then the template...
Read more >Jinja Documentation (2.10.x)
Jinja is a modern and designer-friendly templating language for Python, modelled after Django's templates. It is fast, widely used and secure with the ......
Read more >API — Jinja Documentation (3.0.x)
Jinja supports the Python async and await syntax. For the template designer, this support (when enabled) is entirely transparent, templates continue to look ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay cool - I’ve managed to get something working using the placeholder technique. Thanks for your help @ikatyang.
Any visitors arriving via a search, I’ve started a repo here: https://github.com/justrhysism/prettier-plugin-nunjucks
Long road ahead. Contributions welcome.
This would open up prettier to a new class of users… just sayin’…
<!-- prettier ignore -->
is fine for a line or two, but beyond that, come on.