diff --git a/src/lang/template.js b/src/lang/template.js index fce8476..f9773f5 100644 --- a/src/lang/template.js +++ b/src/lang/template.js @@ -82,14 +82,14 @@ * inadequate, there's a provision for customization. `Template`'s * constructor accepts an optional second argument that is a regular expression * object to match the replaceable symbols in the template string. Let's put - * together a template that uses a syntax similar to the ubiquitous `<%= %>` + * together a template that uses a syntax similar to the now ubiquitous `{{ }}` * constructs: * - * // matches symbols like '<%= field %>' - * var syntax = /(^|.|\r|\n)(\<%=\s*(\w+)\s*%\>)/; + * // matches symbols like '{{ field }}' + * var syntax = /(^|.|\r|\n)(\{{\s*(\w+)\s*}})/; * * var t = new Template( - * '