I noticed in a template I’m editing that sometimes there is a construct like:
{if} ... {/if}
and other times:
{{if}} ... {{/if}}
I’m just wondering what the functional difference is (if any) between these.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
SugarCRM use “{{” and “}}” double brackets around sugar UI variables. This section would be evaluated when sugar are creating cache file. Sugar does not use the tpl files, they preprocess it and generate a cached Smarty tpl, then use smarty to handle the generated cached templates. The double brackets to distinguish between the stage for generating the template file and the stage for processing the runtime view.
This is implemented in EditView, more information can be found here: http://developers.sugarcrm.com/docs/OS/6.2/-docs-Developer_Guides-Sugar_Developer_Guide_6.2.0-Sugar_Developer_Guide_6.2.1_html.html#9003870