[SMARTY] Can't change delimiters.

Juan Carlos Cruz Dada <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <002101c62ba0$bc681fa0$6401a8c0@HERMIONE>
Hello,

I've been playing with Smarty for a few now, and I have to say it is one of
the best template engines around.

Today I updated to the latest release (2.6.12) and when I change the
delimiters, it simply prints the whole template, without parsing it. I want
to change the delimiters as the final users tend to use the normal deliiters
a lot, because of the way they design their templates.

 What could be the problem?  I changed it on the main class and on the
instance script, as I would like it to stay that way even if my clients
modify the class instance "by mistake"

Here is the code I changed.

On libs/Smarty.class.php

    /**
     * The left delimiter used for the template tags.
     *
     * @var string
     */
    var $left_delimiter  =  '<!{'; //'{';

    /**
     * The right delimiter used for the template tags.
     *
     * @var string
     */
    var $right_delimiter =  '}!>'; //'}';

and on the instancing of smarty class

$smarty->left_delimiter = '<!{';
$smarty->right_delimiter = '}!>';

Regards,

JC

-- 
Smarty General Mailing List (http://smarty.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.