index.js 1.7 KB

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