{"id":14155661,"url":"https://github.com/eseom/nunjucks-template","last_synced_at":"2026-03-11T18:38:02.308Z","repository":{"id":42380172,"uuid":"120488811","full_name":"eseom/nunjucks-template","owner":"eseom","description":"This is  a vscode extension for nunjucks template language which is also available to all Jinja style templates","archived":false,"fork":false,"pushed_at":"2022-04-08T12:06:24.000Z","size":221,"stargazers_count":40,"open_issues_count":14,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T19:11:17.781Z","etag":null,"topics":["jinja2","jinja2-template","nodejs","nunjucks","nunjucks-formatter","nunjucks-template","template","vscode","yaml-syntax"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eseom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-06T16:33:54.000Z","updated_at":"2024-07-21T09:42:28.000Z","dependencies_parsed_at":"2022-09-24T11:23:12.061Z","dependency_job_id":null,"html_url":"https://github.com/eseom/nunjucks-template","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eseom%2Fnunjucks-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eseom%2Fnunjucks-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eseom%2Fnunjucks-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eseom%2Fnunjucks-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eseom","download_url":"https://codeload.github.com/eseom/nunjucks-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237843908,"owners_count":19375226,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jinja2","jinja2-template","nodejs","nunjucks","nunjucks-formatter","nunjucks-template","template","vscode","yaml-syntax"],"created_at":"2024-08-17T08:04:46.946Z","updated_at":"2025-10-23T15:30:47.110Z","avatar_url":"https://github.com/eseom.png","language":"TypeScript","funding_links":[],"categories":["vscode"],"sub_categories":[],"readme":"# nunjucks-template\n\nThis is the Nunjucks-supporting extension for vscode with complete features.\n\n# feature\n\n- nunjucks template syntax\n- nunjucks formatter with prettydiff2\n- yaml syntax\n\n## configurations\n\n- By default, detects .nj, .njk files automatically.\n- Additionally, use `files.associations`\n\n#### extension's own configurations\n\n```json\n\"nunjucksTemplate.preserveEmptyLine\": 3\n```\n\n(suggested at issue PR #30 by @sdegutis)\n\n#### other configurations\n\n```json\n\"files.associations\": {\n  \"*.html\": \"njk\"\n},\n```\n\n- For vscode embedded emmet, notify that `njk` is html file type\n\n```json\n\"emmet.includeLanguages\": {\n  \"njk\": \"html\"\n},\n```\n\n- max line length follows standard vscode html.format.wrapLineLength\n\n```json\n\"html.format.wrapLineLength\": 120\n```\n\n- for vscode-icons ([issue #6](https://github.com/eseom/nunjucks-template/issues/6))\n\n```json\n\"vsicons.associations.files\": [\n  { \"icon\": \"nunjucks\", \"extensions\": [\"njk\"], \"format\": \"svg\" }\n],\n```\n\n- for Material Icon Theme by [Heitor Augusto](https://github.com/HeitorAugustoLN)\n\n```json\n\"material-icon-theme.files.associations\": {\n  \"*.html\": \"nunjucks\"\n},\n```\n\n## snippets\n\n| Trigger   | Snippet                             |\n| --------- | ----------------------------------- |\n| n-extends | {% extends '${name}' %}             |\n| n-block   | {% block ${name} %}{% endblock %}   |\n| n-if      | {% if condition %}{% endif %}       |\n| n-for     | {% for ${condition} %}{% endfor %}  |\n| n-macro   | {% macro ${name}() %}{% endmacro %} |\n\n## links\n\n- https://github.com/eseom/nunjucks-template\n- https://marketplace.visualstudio.com/items?itemName=eseom.nunjucks-template#overview\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feseom%2Fnunjucks-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feseom%2Fnunjucks-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feseom%2Fnunjucks-template/lists"}