58 lines
1.5 KiB
JSON

{
"Comment": {
"prefix": "comment",
"body": "{# $0 #}$0",
"description": "Jinja snippet 'Comment'"
},
"Complete Comment": {
"prefix": "{#",
"body": "{# $0 #}$0",
"description": "Jinja snippet 'Complete'"
},
"Do": {
"prefix": "do",
"body": "{% do ${1:expr} %}{# requires jinja2.ext.do #}$0",
"description": "Jinja snippet 'Do'"
},
"Continue": {
"prefix": "continue",
"body": "{% continue %}{# requires jinja2.ext.loopcontrols #}$0",
"description": "Jinja snippet 'Continue'"
},
"Break": {
"prefix": "break",
"body": "{% break %}{# requires jinja2.ext.loopcontrols #}$0",
"description": "Jinja snippet 'Break'"
},
"Autoescape": {
"prefix": "autoescape",
"body": "{% autoescape ${1:false} %}\\n$2\\n{% endautoescape %}$0",
"description": "Jinja snippet 'Autoescape'"
},
"Todo": {
"prefix": "todo",
"body": "{# TODO: ${1:message} #}$0",
"description": "Jinja snippet 'Todo'"
},
"Block": {
"prefix": "block",
"body": "{% block ${1:name} %}\\n\\t$2\\n{% endblock %}{# ${1:name} #}$0",
"description": "Jinja snippet 'Block'"
},
"Set": {
"prefix": "set",
"body": "{% set ${1:var} = ${2:expr} %}$0",
"description": "Jinja snippet 'Set'"
},
"if": {
"prefix": "if",
"body": "{% if ${1:expr} %}\n{% endif %}$0",
"description": "Jinja snippet 'If'"
},
"for": {
"prefix": "for",
"body": "{% for ${1:expr} in ${2:expr} %}\n{% endfor %}$0",
"description": "Jinja snippet 'If'"
}
}