mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
doT.js API allows modification of the exported templateSettings property. Change from const (#16385)
This commit is contained in:
committed by
Andy
parent
c9c78dff64
commit
8a7e78869e
@@ -23,6 +23,8 @@ const data = {
|
||||
name: "My name"
|
||||
};
|
||||
|
||||
doT.templateSettings.varname = 'test';
|
||||
|
||||
let pagefn = doT.template(pagetmpl, undefined, def);
|
||||
const content = pagefn(data);
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -8,8 +8,8 @@ export as namespace doT;
|
||||
/** Version number */
|
||||
export const version: string;
|
||||
|
||||
/** Default template settings */
|
||||
export const templateSettings: TemplateSettings;
|
||||
/** Template settings */
|
||||
export let templateSettings: TemplateSettings;
|
||||
|
||||
export type RenderFunction = (...args: any[]) => string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user