Bez popisu

index.js 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * lodash 3.1.1 (Custom Build) <https://lodash.com/>
  3. * Build: `lodash modularize exports="npm" -o ./`
  4. * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
  5. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  6. * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  7. * Available under MIT license <https://lodash.com/license>
  8. */
  9. var escape = require('lodash.escape'),
  10. reInterpolate = require('lodash._reinterpolate');
  11. /** Used to match template delimiters. */
  12. var reEscape = /<%-([\s\S]+?)%>/g,
  13. reEvaluate = /<%([\s\S]+?)%>/g;
  14. /**
  15. * By default, the template delimiters used by lodash are like those in
  16. * embedded Ruby (ERB). Change the following template settings to use
  17. * alternative delimiters.
  18. *
  19. * @static
  20. * @memberOf _
  21. * @type Object
  22. */
  23. var templateSettings = {
  24. /**
  25. * Used to detect `data` property values to be HTML-escaped.
  26. *
  27. * @memberOf _.templateSettings
  28. * @type RegExp
  29. */
  30. 'escape': reEscape,
  31. /**
  32. * Used to detect code to be evaluated.
  33. *
  34. * @memberOf _.templateSettings
  35. * @type RegExp
  36. */
  37. 'evaluate': reEvaluate,
  38. /**
  39. * Used to detect `data` property values to inject.
  40. *
  41. * @memberOf _.templateSettings
  42. * @type RegExp
  43. */
  44. 'interpolate': reInterpolate,
  45. /**
  46. * Used to reference the data object in the template text.
  47. *
  48. * @memberOf _.templateSettings
  49. * @type string
  50. */
  51. 'variable': '',
  52. /**
  53. * Used to import variables into the compiled template.
  54. *
  55. * @memberOf _.templateSettings
  56. * @type Object
  57. */
  58. 'imports': {
  59. /**
  60. * A reference to the `lodash` function.
  61. *
  62. * @memberOf _.templateSettings.imports
  63. * @type Function
  64. */
  65. '_': { 'escape': escape }
  66. }
  67. };
  68. module.exports = templateSettings;