diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-04-24 23:13:44 -0400 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-04-24 23:13:44 -0400 |
commit | 8d5e468eb47f35287214ed4a12722d5add5f37ba (patch) | |
tree | 9d88fbc0b24537d3b9780f8d454c416fb8187f70 | |
parent | 5afc0b9b905814718ed0292fa5cc7342786c1fca (diff) | |
download | forums-8d5e468eb47f35287214ed4a12722d5add5f37ba.tar forums-8d5e468eb47f35287214ed4a12722d5add5f37ba.tar.gz forums-8d5e468eb47f35287214ed4a12722d5add5f37ba.tar.bz2 forums-8d5e468eb47f35287214ed4a12722d5add5f37ba.tar.xz forums-8d5e468eb47f35287214ed4a12722d5add5f37ba.zip |
[feature/template-engine] Created a script to compile templates.
Script takes path to template as the only argument and outputs
the compiled template to standard output.
PHPBB3-9726
-rw-r--r-- | phpBB/develop/compile_template.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/develop/compile_template.php b/phpBB/develop/compile_template.php new file mode 100644 index 0000000000..e80e0f21b5 --- /dev/null +++ b/phpBB/develop/compile_template.php @@ -0,0 +1,24 @@ +<?php +// ------------------------------------------------------------- +// +// $Id$ +// +// FILENAME : compile_template.php +// STARTED : Sun Apr 24, 2011 +// COPYRIGHT : © 2011 phpBB Group +// WWW : http://www.phpbb.com/ +// LICENCE : GPL vs2.0 [ see /docs/COPYING ] +// +// ------------------------------------------------------------- + +define('IN_PHPBB', 1); +define('ANONYMOUS', 1); +$phpEx = substr(strrchr(__FILE__, '.'), 1); +$phpbb_root_path = './../'; + +include($phpbb_root_path . 'includes/template_compile.'.$phpEx); + +$file = $argv[1]; + +$compile = new phpbb_template_compile(); +echo $compile->compile_gen($file); |