mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-03 00:28:53 +00:00
[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
This commit is contained in:
parent
5afc0b9b90
commit
8d5e468eb4
1 changed files with 24 additions and 0 deletions
24
phpBB/develop/compile_template.php
Normal file
24
phpBB/develop/compile_template.php
Normal file
|
@ -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);
|
Loading…
Add table
Reference in a new issue