🤖 Merge PR #63345 Make Mustache.escape reassignable by @wfdewith

This commit is contained in:
Wim de With
2022-11-21 20:17:14 +01:00
committed by GitHub
parent 5cdd234785
commit c2f30cda52
2 changed files with 3 additions and 1 deletions

View File

@@ -324,7 +324,7 @@ export class Writer {
* @param value
* The value to escape into a string.
*/
export const escape: EscapeFunction;
export let escape: EscapeFunction;
/**
* Clears all cached templates in this writer.

View File

@@ -49,3 +49,5 @@ Mustache.templateCache = {
}
Mustache.tags = ['<%', '%>'];
Mustache.escape = (text: string) => text;