CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
templateSettings.js72 linesDownload Raw Back to lodash-es
1import escape from './escape.js';2import reEscape from './_reEscape.js';3import reEvaluate from './_reEvaluate.js';4import reInterpolate from './_reInterpolate.js';5 6/**7 * By default, the template delimiters used by lodash are like those in8 * embedded Ruby (ERB) as well as ES2015 template strings. Change the9 * following template settings to use alternative delimiters.10 *11 * **Security:** See12 * [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md)13 * — `_.template` is insecure and will be removed in v5.14 *15 * @static16 * @memberOf _17 * @type {Object}18 */19var templateSettings = {20 21  /**22   * Used to detect `data` property values to be HTML-escaped.23   *24   * @memberOf _.templateSettings25   * @type {RegExp}26   */27  'escape': reEscape,28 29  /**30   * Used to detect code to be evaluated.31   *32   * @memberOf _.templateSettings33   * @type {RegExp}34   */35  'evaluate': reEvaluate,36 37  /**38   * Used to detect `data` property values to inject.39   *40   * @memberOf _.templateSettings41   * @type {RegExp}42   */43  'interpolate': reInterpolate,44 45  /**46   * Used to reference the data object in the template text.47   *48   * @memberOf _.templateSettings49   * @type {string}50   */51  'variable': '',52 53  /**54   * Used to import variables into the compiled template.55   *56   * @memberOf _.templateSettings57   * @type {Object}58   */59  'imports': {60 61    /**62     * A reference to the `lodash` function.63     *64     * @memberOf _.templateSettings.imports65     * @type {Function}66     */67    '_': { 'escape': escape }68  }69};70 71export default templateSettings;72 
basant307/AI_Governance_Project · CoolFace