Re: [SMARTY] Parsing problem with dynamic tempate functions

From: Date: Mon, 30 Sep 2002 17:01:31 +0000
Subject: Re: [SMARTY] Parsing problem with dynamic tempate functions
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6052@lists.php.net to get a copy of this message
Hi, mhh, I personally don't like these workaround solutions, that's why I just changed Smarty_Compiler.class.php alittle bit, so it's not confused by delimiters between quotes anymore. Tags like {createlink name="{-foo-}-{-bar-}"} don't create syntax errors anymore. I think this is quite a useful enhancement. Greets, Georges -----Ursprungliche Nachricht----- Von: Josh Johnson [mailto:mailing_lists@allusiveimage.com] Gesendet: Dienstag, 24. September 2002 20:43 An: 'Georges Berscheid'; smarty-general@lists.php.net Betreff: RE: [SMARTY] Parsing problem with dynamic tempate functions You might have to change your smarty delimiter to something else... or maybe do something programmatically in your function to convert a hex code or something to the curly bracket -- Josh -----Original Message----- From: Georges Berscheid [mailto:georges@berscheid.lu] Sent: Tuesday, September 24, 2002 2:36 PM To: smarty-general@lists.php.net Subject: [SMARTY] Parsing problem with dynamic tempate functions Hi, I'm very new to this list, and I browsed the archive but I could not find anything answering my question, so please do not hit on me too much if there is an answer and I just didn't find it :) All I'm trying to do is passing any string as a parameter to a dynamic template function (registered with register_function). e.g. {createlink name="foobar"} works perfectly. Although {createlink name="{}foobar{}"} where the brackets belong to the actual string I want to pass to the function, produces the following error: Fatal error: Smarty plugin error: [in listlinks.tpl line 175]: unknown tag - '' in /home/web/php/Smarty-2.3.0/Smarty.class.php on line 1980 I tried everything I could think of, including escaping the brackets, leave the outer brackets away, using single quotes etc. but nothing worked :-/ Any hint ? Thanks, Georges P.S. This is Smarty-2.3.0 with PHP-4.2.3 and Apache-1.3.26 on a RedHat-7.0 Machine. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#6052) next »