A vscode plugin that provides code snippets for nunjucks
Snippets
Prefix | HTML Snippet Content |
---|---|
block | {% block name %} {% endblock %} |
njk | {% %} |
var | {{ variable }} |
extends | {% extends "template" %} |
include | {% include "template" %} |
filter | {% filter filter %} {% endfilter %} |
for | {% for item in sequence %} {% endfor %} |
asyncEach | {% asyncEach item in sequence %} {% endeach %} |
asyncAll | {% asyncAll item in sequence %} {% endeach %} |
if | {% if condition %} {% endif %} |
ife | if else |
ifel | if elif |
elif | elif |
else | else |
end | {% endif %} |
set | set |
macro | macro |
import | import |
from | from import |
raw | raw |
call | call |
var | alt variable |
super | super |
or | or |
pipe | pipe |