diff --git a/lodash.js b/lodash.js index 8004334a5..45d0a2ec4 100644 --- a/lodash.js +++ b/lodash.js @@ -8125,6 +8125,11 @@ * compiled({ 'name': 'mustache' }); * // => 'hello mustache!' * + * // delimiters cannot be nested, even in strings + * var compiled = _.template('<%- "<%- value %>" %>'); + * compiled({}); + * // => throws error + * * // using the `imports` option to import `jQuery` as `jq` * var text = '<% jq.each(people, function(name) { %>
  • <%- name %>
  • <% }); %>'; * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });