adding m flag to default templateSettings regexes.

This commit is contained in:
Jeremy Ashkenas
2010-10-05 17:05:03 -04:00
parent 7b25bbef4f
commit 5984be70c1
2 changed files with 5 additions and 3 deletions

View File

@@ -623,8 +623,8 @@
// By default, Underscore uses ERB-style template delimiters, change the
// following template settings to use alternative delimiters.
_.templateSettings = {
evaluate : /<%(.+?)%>/g,
interpolate : /<%=(.+?)%>/g
evaluate : /<%(.+?)%>/gm,
interpolate : /<%=(.+?)%>/gm
};
// JavaScript templating a-la ERB, pilfered from John Resig's