Created
June 13, 2021 15:53
-
-
Save 4ov/79ced111dc647fd6d85bd58d538223cd to your computer and use it in GitHub Desktop.
my lodash settings for templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.templateSettings = { | |
evaluate: /\~([^~]*?)\~/, ///{{--([\s\S]+?)}}/g, | |
interpolate: /{{([\s\S]+?)}}/g, | |
escape: /{{-([\s\S]+?)}}/g | |
}; | |
// ~ eval ~ | |
// {{ interpolate }} | |
// {{- escape }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment