Nunjucks Pathrunner
Features
Perfect for Eleventy / Nunjucks projects that use many reusable Nunjucks templates, partials, layouts and macros. Supported syntaxThe extension supports static template paths used in:
Supported tags:
UsageHold:
on a You can also use:
The behavior is similar to native JavaScript imports in VS Code. ConfigurationNunjucks Pathrunner uses a base include path to resolve template references. Default value:
This means that a template reference like:
will be resolved as:
You can configure the base path globally or per workspace. Open settings:
or edit your
You can change the path to match your project structure:
Notes:
Dynamic paths limitationThe extension can resolve only static template paths. Examples that work:
Examples that cannot be resolved:
Dynamic paths cannot be resolved reliably because the final template path depends on runtime variables, data files, front matter, global data, computed data or template context. CompatibilityThis extension works only in VS Code Desktop. It is not supported in VS Code Web (vscode.dev / github.dev). Why Nunjucks Pathrunner?Eleventy and Nunjucks projects often rely on reusable templates split across many folders. Without native navigation support, moving between includes, layouts and macros can become slow and repetitive. Nunjucks Pathrunner improves the editing experience by making static DevTeamARMADA 429
Lorenzo "Saibal" Forti - lorenzo.forti@gmail.com License |