Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add '.njk' file type support. #11

Open
mrself opened this issue Aug 6, 2016 · 6 comments
Open

Add '.njk' file type support. #11

mrself opened this issue Aug 6, 2016 · 6 comments

Comments

@mrself
Copy link

mrself commented Aug 6, 2016

Although you are free to use any file extension you wish for your Nunjucks template files, the Nunjucks community has adopted .njk.

Nunjucks official docs

@gxcodes
Copy link

gxcodes commented Aug 8, 2016

Yes, I'm currently working with adonisjs which produce view templates with .njk extension. Adding this support will be very helpful.

valtido added a commit to valtido/sublime-nunjucks that referenced this issue Sep 26, 2016
As per requested mogga#11 here is the simple solution.
@DJviolin
Copy link

I edited https://github.com/andres-risso/sublime-nunjucks cloned repo (which is works with ST3) to include .njk file support for myself: https://github.com/DJviolin/sublime-nunjucks

Feel free to use it if you want.

@connor11528
Copy link

@DJviolin I am getting an error downloading your package when I open sublime:

Error loading syntax file "Packages/Nunjucks Syntax/Nunjucks.tmLanguage": Wrong type for key begin expected string

@DJviolin
Copy link

Sorry, I'm not maintaining anymore with latest Sublime text versions. I switched to VS Code long ago.

@connor11528
Copy link

Okay cool, vs code has njk highlighting? heard a lot of good things..

https://twitter.com/Connor11528/status/924672676387479552

@DJviolin
Copy link

Off topic, but yeah, It's great. Much more solid then Atom and doesn't have any performance issues (this kept me to use Sublime when I started with Atom).

I use this extension for Nunjucks: https://marketplace.visualstudio.com/items?itemName=ronnidc.nunjucks

It's based on this extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants