mirror of
https://github.com/Kong/insomnia.git
synced 2026-05-19 14:23:03 -04:00
@@ -170,6 +170,8 @@ async function getNunjucks(renderMode: string, ignoreUndefinedEnvVariable?: bool
|
||||
// Create Env with Extensions //
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~ //
|
||||
const nunjucksEnvironment = nunjucks.configure(config) as NunjucksEnvironment;
|
||||
nunjucksEnvironment.addGlobal('range', undefined);
|
||||
nunjucksEnvironment.addGlobal('cycler', undefined);
|
||||
const pluginTemplateTags = await (await import('../plugins')).getTemplateTags();
|
||||
|
||||
const allExtensions = [
|
||||
|
||||
@@ -170,7 +170,8 @@ async function getNunjucks(renderMode: string, ignoreUndefinedEnvVariable?: bool
|
||||
// Create Env with Extensions //
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~ //
|
||||
const nunjucksEnvironment = nunjucks.configure(config) as NunjucksEnvironment;
|
||||
|
||||
nunjucksEnvironment.addGlobal('range', undefined);
|
||||
nunjucksEnvironment.addGlobal('cycler', undefined);
|
||||
const allExtensions = [...localTemplateTags];
|
||||
|
||||
for (const extension of allExtensions) {
|
||||
|
||||
Reference in New Issue
Block a user