소스 검색

implement default behavior for the partials_loader

Matt DeClaire 12 년 전
부모
커밋
8053ce7093
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/Mustache/Engine.php

+ 2 - 0
src/Mustache/Engine.php

@@ -113,6 +113,8 @@ class Mustache_Engine
 
         if (isset($options['partials_loader'])) {
             $this->setPartialsLoader($options['partials_loader']);
+        } else if (isset($options['loader'])) {
+            $this->setPartialsLoader($options['loader']);
         }
 
         if (isset($options['partials'])) {