Sfoglia il codice sorgente

implement default behavior for the partials_loader

Matt DeClaire 12 anni fa
parent
commit
8053ce7093
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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'])) {