diff --git a/daux.phar b/daux.phar index b6da78c..aee9b96 100755 Binary files a/daux.phar and b/daux.phar differ diff --git a/libs/Format/HTML/Template.php b/libs/Format/HTML/Template.php index 86c7bbb..5bb40ab 100644 --- a/libs/Format/HTML/Template.php +++ b/libs/Format/HTML/Template.php @@ -15,6 +15,11 @@ class Template */ public function __construct($base, $theme) { + // Use templates from the phar archive if the templates dir doesn't exist. + if (!is_dir($base)) { + $base = 'phar://daux.phar/templates'; + } + // Create new Plates instance $this->engine = new Engine($base); if (!is_dir($theme)) {