[limb-svn] r7050 - 3.x/trunk/limb/macro/src/compiler
svn at limb-project.com
svn at limb-project.com
Wed Jun 4 15:08:37 MSD 2008
Author: serega
Date: 2008-06-04 15:08:37 +0400 (Wed, 04 Jun 2008)
New Revision: 7050
URL: http://fisheye.limb-project.com/changelog/limb/?cs=7050
Modified:
3.x/trunk/limb/macro/src/compiler/lmbMacroCompiler.class.php
Log:
-- lmbMacroCompiler now writes template full path as the first line of the generated template file
Modified: 3.x/trunk/limb/macro/src/compiler/lmbMacroCompiler.class.php
===================================================================
--- 3.x/trunk/limb/macro/src/compiler/lmbMacroCompiler.class.php 2008-06-03 05:55:15 UTC (rev 7049)
+++ 3.x/trunk/limb/macro/src/compiler/lmbMacroCompiler.class.php 2008-06-04 11:08:37 UTC (rev 7050)
@@ -57,6 +57,7 @@
$this->parseTemplate($source_file, $root_node);
$generated_code = $this->_generateTemplateCode($class, $render_func, $root_node);
+ $generated_code = '<?php /* This file is generated from ' . $source_file . '*/?>' . $generated_code;
self :: writeFile($compiled_file, $generated_code);
}
@@ -103,7 +104,6 @@
static function writeFile($file, $data)
{
-
$dirname = dirname($file);
lmbFs :: mkdir($dirname);
More information about the limb-svn
mailing list