소스 검색

Check for existence of partial template before parsing

tags/0.8.1
Michael Jackson 12 년 전
부모
커밋
d6fa9285c1
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. +2
    -3
      mustache.js

+ 2
- 3
mustache.js 파일 보기

@@ -496,9 +496,8 @@
break;
case '>':
if (!partials) continue;
var partialTemplate = isFunction(partials) ? partials(token[1]) : partials[token[1]];
value = this.parse(partialTemplate);
if (value != null) buffer += this.renderTokens(value, context, partials, partialTemplate);
value = isFunction(partials) ? partials(token[1]) : partials[token[1]];
if (value != null) buffer += this.renderTokens(this.parse(value), context, partials, value);
break;
case '&':
value = context.lookup(token[1]);


불러오는 중...
취소
저장