source: frontend/node_modules/lodash/templateSettings.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.5 KB
Line 
1var escape = require('./escape'),
2 reEscape = require('./_reEscape'),
3 reEvaluate = require('./_reEvaluate'),
4 reInterpolate = require('./_reInterpolate');
5
6/**
7 * By default, the template delimiters used by lodash are like those in
8 * embedded Ruby (ERB) as well as ES2015 template strings. Change the
9 * following template settings to use alternative delimiters.
10 *
11 * **Security:** See
12 * [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md)
13 * — `_.template` is insecure and will be removed in v5.
14 *
15 * @static
16 * @memberOf _
17 * @type {Object}
18 */
19var templateSettings = {
20
21 /**
22 * Used to detect `data` property values to be HTML-escaped.
23 *
24 * @memberOf _.templateSettings
25 * @type {RegExp}
26 */
27 'escape': reEscape,
28
29 /**
30 * Used to detect code to be evaluated.
31 *
32 * @memberOf _.templateSettings
33 * @type {RegExp}
34 */
35 'evaluate': reEvaluate,
36
37 /**
38 * Used to detect `data` property values to inject.
39 *
40 * @memberOf _.templateSettings
41 * @type {RegExp}
42 */
43 'interpolate': reInterpolate,
44
45 /**
46 * Used to reference the data object in the template text.
47 *
48 * @memberOf _.templateSettings
49 * @type {string}
50 */
51 'variable': '',
52
53 /**
54 * Used to import variables into the compiled template.
55 *
56 * @memberOf _.templateSettings
57 * @type {Object}
58 */
59 'imports': {
60
61 /**
62 * A reference to the `lodash` function.
63 *
64 * @memberOf _.templateSettings.imports
65 * @type {Function}
66 */
67 '_': { 'escape': escape }
68 }
69};
70
71module.exports = templateSettings;
Note: See TracBrowser for help on using the repository browser.