[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-general
Subject:    [smarty] How to change delimeter temporary ?
From:       Markus Fischer <mfischer () guru ! josefine ! at>
Date:       2001-08-23 0:30:24
[Download RAW message or body]


I'm trying to achieve this by doing:

$s = new Smarty;
$s->left_delimeter = '{{';
$s->right_delimeter = '}}';

But upon template parsing I just get

Warning: Smarty: [in anmelden.htm line 93]: syntax error: unknown
tag - '{' 

The line in question

{{ html_options options=$list_gaeste }}

Using single { and } still works.

Maybe its just the it isn't supported that way ... ?

Directly changing the delimter in the class files only processed
code within single { and } and passed everything start with {{
and ending with }} directly to the browser which then looks like
this

        <select name="select">
          { html_options options=$event_types }
        </select>


ty,
	Markus

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail:         mfischer@guru.josefine.at
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
              -All your scripts are belong to Zend-

---
You are currently subscribed to smarty as: smarty@progressive-comp.com
To unsubscribe send a blank email to leave-smarty-700385W@lists.ispi.net
Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic