|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
bimal Smarty Elite
Joined: 19 Apr 2007 Posts: 423
|
Posted: Wed Mar 09, 2011 6:33 am Post subject: Delimiters and braces { ... } |
|
|
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 |
|
|
|
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
|