diff --git a/template.php b/VMXTemplate.php similarity index 99% rename from template.php rename to VMXTemplate.php index 4ee1dfd..f3adae0 100644 --- a/template.php +++ b/VMXTemplate.php @@ -12,7 +12,7 @@ * * The template engine is split into two parts: * (1) This file - always used when running templates - * (2) template.parser.php - used only when compiling new templates + * (2) VMXTemplateCompiler.php - used only when compiling new templates */ /** @@ -466,7 +466,7 @@ class VMXTemplate self::filter_strip_space($code); if (!$this->compiler) { - require_once(dirname(__FILE__).'/template.parser.php'); + require_once(dirname(__FILE__).'/VMXTemplateCompiler.php'); $this->compiler = new VMXTemplateCompiler($this->options); } $compiled = $this->compiler->parse_all($code, $fn, $func_ns); diff --git a/template.parser.php b/VMXTemplateCompiler.php similarity index 100% rename from template.parser.php rename to VMXTemplateCompiler.php diff --git a/compile.sh b/compile.sh index ba28cad..255a1f2 100755 --- a/compile.sh +++ b/compile.sh @@ -5,10 +5,10 @@ if [ "$LIME_DIR" = "" ]; then fi php -d xdebug.max_nesting_level=200 $LIME_DIR/lime.php template.lime | tail -n +2 > template.class -LINES=`grep -n -h " \*\*\* DON'T EDIT THIS FILE! \*\*\*" template.parser.php | perl -pe 's/(\d+):.*/$1-2/e'` +LINES=`grep -n -h " \*\*\* DON'T EDIT THIS FILE! \*\*\*" VMXTemplateCompiler.php | perl -pe 's/(\d+):.*/$1-2/e'` if [ "$LINES" != "" ]; then - head -n $LINES template.parser.php | cat - template.class > template.parser.php.new + head -n $LINES VMXTemplateCompiler.php | cat - template.class > VMXTemplateCompiler.php.new else - cat template.parser.php template.class > template.parser.php.new + cat VMXTemplateCompiler.php template.class > VMXTemplateCompiler.php.new fi -mv template.parser.php.new template.parser.php +mv VMXTemplateCompiler.php.new VMXTemplateCompiler.php