Skip to content

Commit

Permalink
make mustache tags run first with precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 16, 2017
1 parent ef5ffea commit d4906cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -908,13 +908,13 @@

if (name) {
// Extract Variable References
name = name.replace(expressionRE, function (match, reference) {
name = "(" + name.replace(expressionRE, function (match, reference) {
if (reference !== undefined) {
return 'instance.get("' + reference + '")';
} else {
return match;
}
});
}) + ")";

// Add quotes if string
if (isString) {
Expand Down

0 comments on commit d4906cc

Please sign in to comment.