Results 1 to 4 of 4

Thread: Smarty

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    11

    Smarty

    This is for the Smarty Template Engine (smarty.php.net):

    Does anyone know a way to force a "{" or "}" (the default tags) to be displayed, and not interpreted, such as the back-slash in PHP, Perl or JavaScript?

    Thanks.

  2. #2
    I dont get the question i think this is what your saying, how can i make it so when you type ( or ) it tunrs to { or } ?? If not can you please say the question again

  3. #3
    GreekGoddess
    Guest
    This site is dedicated to special characters in HTML etc....
    http://www.draac.com/special.html

    And here is the php.net manual dedicated to strings:

    http://www.php.net/manual/en/ref.strings.php

  4. #4
    Junior Member
    Join Date
    Aug 2002
    Posts
    11
    what i am looking for is to include a style sheet in my page.

    right now I have to do this

    Code:
    <STYLE>
    
    this {php} echo "{\n"; {/php}
        color: blah;
        otherstuff: blah;
    {php} echo "}\n"; {/php}
    
    </STYLE>
    I want to just do something like "\{" and "\}" (use an escape character i think) instead of doing "{php} echo "{\n"; {/php}" and "{php} echo "}\n"; {/php}"

    I hope that this is clearer

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •