aboutsummaryrefslogtreecommitdiffstats
path: root/util/precompile_smarty3.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-08 21:31:15 -0700
committerfriendica <info@friendica.com>2013-05-08 21:31:15 -0700
commit735140e8d9f86c5ee0cbc29b50129e1abb73a647 (patch)
tree60b09d1f96dabfc4175845eeee7142f17af9791f /util/precompile_smarty3.php
parentcb0a90d6281a0fef998bfa342612fe47f91a2099 (diff)
parentcdcbe9772423d5373f6d0d4aa33700446a989340 (diff)
downloadvolse-hubzilla-735140e8d9f86c5ee0cbc29b50129e1abb73a647.tar.gz
volse-hubzilla-735140e8d9f86c5ee0cbc29b50129e1abb73a647.tar.bz2
volse-hubzilla-735140e8d9f86c5ee0cbc29b50129e1abb73a647.zip
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'util/precompile_smarty3.php')
-rwxr-xr-xutil/precompile_smarty3.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/util/precompile_smarty3.php b/util/precompile_smarty3.php
new file mode 100755
index 000000000..65cb760ef
--- /dev/null
+++ b/util/precompile_smarty3.php
@@ -0,0 +1,27 @@
+<?php
+
+
+/**
+* @package util
+*/
+
+#require_once('boot.php');
+#require_once('include/cli_startup.php');
+require_once "library/Smarty/libs/Smarty.class.php";
+
+#cli_startup();
+
+$folders = array_merge(array('view/tpl/'),glob('view/theme/*/tpl/*',GLOB_ONLYDIR));
+
+$s = new Smarty();
+
+$s->setTemplateDir($folders);
+
+$s->setCompileDir('view/tpl/smarty3/compiled/');
+$s->setConfigDir('view/tpl/smarty3/config/');
+$s->setCacheDir('view/tpl/smarty3/cache/');
+
+$s->left_delimiter = "{{";
+$s->right_delimiter = "}}";
+
+$s->compileAllTemplates('.tpl',true); \ No newline at end of file