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.

[REQUEST] Support Jinja2 templates

See original GitHub issue

Can we get icon association for files ending with .j2, .jinja, .jinja2? I saw this icon on a quick google search.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
PKiefcommented, Dec 5, 2017

Yes, but I already added them (see dev branch): folder-jinja_light.svg folder-jinja-open_light.svg

dev branch jinja icons

I also added the “light: true” option:

{
    name: 'folder-jinja',
    folderNames: [
        'jinja',
        'jinja2',
        'j2'
    ],
    light: true
}

“light: true” means that the extension switches the icon to the light version if the VSCode theme is a light theme. If the theme is dark, then the icon will be the default, dark version. The “light: true” just tells the extension, that there’s a light version available.

See here

1reaction
PKiefcommented, Dec 5, 2017

Exactly it now looks like this:

I also inverted the colors to use the icons on a light theme:

The changes will be part of the upcoming update on the marketplace (which is coming soon!)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jinja Documentation (3.0.x) » Template Designer ...
This template, which we'll call base.html , defines a simple HTML skeleton document ... Starting with Jinja 2.10, the block assignment supports filters....
Read more >
API — Jinja Documentation (3.0.x)
The simplest way to configure Jinja to load templates for your application is to use PackageLoader . from jinja2 import Environment, PackageLoader, ...
Read more >
API — Jinja Documentation (2.9.x)
It will be most useful as reference to those implementing the template interface to the application and not those who are creating Jinja2...
Read more >
Templates — Flask Documentation (2.2.x)
The Jinja2 template engine supports rendering a template piece by piece, returning an iterator of strings. Flask provides the stream_template() and ...
Read more >
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 >

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