summaryrefslogtreecommitdiffstats
path: root/Mustache/Loader/MutableLoader.php
diff options
context:
space:
mode:
Diffstat (limited to 'Mustache/Loader/MutableLoader.php')
-rw-r--r--Mustache/Loader/MutableLoader.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/Mustache/Loader/MutableLoader.php b/Mustache/Loader/MutableLoader.php
new file mode 100644
index 0000000..952db2f
--- /dev/null
+++ b/Mustache/Loader/MutableLoader.php
@@ -0,0 +1,32 @@
+<?php
+
+/*
+ * This file is part of Mustache.php.
+ *
+ * (c) 2012 Justin Hileman
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+/**
+ * Mustache Template mutable Loader interface.
+ */
+interface Mustache_Loader_MutableLoader
+{
+
+ /**
+ * Set an associative array of Template sources for this loader.
+ *
+ * @param array $templates
+ */
+ public function setTemplates(array $templates);
+
+ /**
+ * Set a Template source by name.
+ *
+ * @param string $name
+ * @param string $template Mustache Template source
+ */
+ public function setTemplate($name, $template);
+}