question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jinja Template Support

See original GitHub issue

Jinja is an extremely popular Python templating framework. It is used by many projects including Mozilla and Instagram.

http://jinja.pocoo.org

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:closed
  • Created 5 years ago
  • Reactions:31
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
justrhysismcommented, Jan 26, 2019

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.

3reactions
nicktobolskicommented, Jun 10, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found