Include config and autoloader when working in future mode
authorJoey Schulze <joey@infodrom.org>
Mon, 14 Dec 2015 21:12:44 +0000 (21:12 +0000)
committerJoey Schulze <joey@infodrom.org>
Mon, 14 Dec 2015 21:12:44 +0000 (21:12 +0000)
Styles/infocon.style

index 7ec9027..69cd5b8 100644 (file)
@@ -216,3 +216,18 @@ printf "Letzte 
 
 <restore base text href current>
 </define-tag>
 
 <restore base text href current>
 </define-tag>
+
+<define-tag future>
+<?php
+$dir = getcwd();
+while (strlen($dir) > 1) {
+  if (file_exists($dir.'/config.php')) {
+    require_once($dir.'/config.php');
+    break;
+  }
+  $dir = dirname($dir);
+}
+
+require_once('<root_prefix>/future.php');
+?>
+</define-tag>