cvs: smarty / NEWS /libs Smarty_Compiler.class.php

"Monte Ohrt" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmohrt1093877671@cvsserver>
mohrt		Mon Aug 30 10:54:31 2004 EDT

  Modified files:              
    /smarty	NEWS 
    /smarty/libs	Smarty_Compiler.class.php 
  Log:
  add $smarty.ldelim and $smarty.rdelim to smarty special var
  
  
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.470&r2=1.471&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.470 smarty/NEWS:1.471
--- smarty/NEWS:1.470	Sun Aug 29 09:16:29 2004
+++ smarty/NEWS	Mon Aug 30 10:54:30 2004
@@ -1,3 +1,4 @@
+  - add $smarty.ldelim and $smarty.rdelim to smarty special var (Monte)
   - fall back to old uniqid()-behaviour when tempnam() fails in
     core.write_file.php (messju)
   - fix capitalize modifier, don't rely on buggy ucwords (Monte)
http://cvs.php.net/diff.php/smarty/libs/Smarty_Compiler.class.php?r1=1.332&r2=1.333&ty=u
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.332 smarty/libs/Smarty_Compiler.class.php:1.333
--- smarty/libs/Smarty_Compiler.class.php:1.332	Mon Aug 23 16:21:19 2004
+++ smarty/libs/Smarty_Compiler.class.php	Mon Aug 30 10:54:30 2004
@@ -26,7 +26,7 @@
  * @package Smarty
  */
 
-/* $Id: Smarty_Compiler.class.php,v 1.332 2004/08/23 20:21:19 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.333 2004/08/30 14:54:30 mohrt Exp $ */
 
 /**
  * Template compiling class
@@ -2040,6 +2040,14 @@
                 $_max_index = 3;
                 break;
 
+            case 'ldelim':
+                $compiled_ref = "'$this->left_delimiter'";
+                break;
+
+            case 'rdelim':
+                $compiled_ref = "'$this->right_delimiter'";
+                break;
+                
             default:
                 $this->_syntax_error('$smarty.' . $_ref . ' is an unknown reference', E_USER_ERROR, __FILE__, __LINE__);
                 break;

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.