Permalink
Browse files

[demo/mustache] Recognize triple braces

  • Loading branch information...
marijnh committed Sep 28, 2012
1 parent cc6079b commit e8b2cb7d8d669724c2033a35408b263f9530dddd
Showing with 1 addition and 0 deletions.
  1. +1 −0 demo/mustache.html
View
@@ -37,6 +37,7 @@ <h1>{{title}}</h1>
if (stream.match("{{")) {
while ((ch = stream.next()) != null)
if (ch == "}" && stream.next() == "}") break;
+ stream.eat("}");
return "mustache";
}
while (stream.next() != null && !stream.match("{{", false)) {}

0 comments on commit e8b2cb7

Please sign in to comment.