浏览代码

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'])) {