Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Delimiters and braces { ... }

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks
View previous topic :: View next topic  
Author Message
bimal
Smarty Elite


Joined: 19 Apr 2007
Posts: 423

PostPosted: Wed Mar 09, 2011 6:33 am    Post subject: Delimiters and braces { ... } Reply with quote

It is not really difficult to print the braces { and }.
In new version of smarty, if these braces have white spaces around them, they are printed as they appear.

But still, it can cause problems with copy-pasted third party java script sources or css, if embedded inside a template. Minified or full versions of both of them probably do not contain the white spaces around the braces. So, they often raise conflicts with smarty template.

You may write:
{chr(123)} for {
And, c{hr(125)} for }

These are the default delimiters.
You can print them using {ldelim} and {rdelim} as well.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP