Change Default Smarty Delimiter

Hello,

it would be nice if in 4.6 you change default Smarty delimeter form '{' to '{{' or '{%' sou we can use css or javascript code inside tpl without using '{ldelim}','{rdelim}'.

Please don’t wait for this :slight_smile: because will not happen, and this because:

  • CS-Cart will need to put some time into this which will not add any value to store admin
  • CS-Cart will need to change all documentation related to smarty templates
  • Developers will need to adapt add-ons and themes to new standards
Anyway you can use ‘{ldelim}’,‘{rdelim}’ and also {literal}…{/literal} if in javascript is no variable present


Keep on smiling,

Valentin
part of hungryweb.net

Hello,

it would be nice if in 4.6 you change default Smarty delimeter form '{' to '{{' or '{%' sou we can use css or javascript code inside tpl without using '{ldelim}','{rdelim}'.

There is no need to use ldelim/ rdelim in 4.x versions. Just make sure that { and } symbols are not located on one line. E.g.

This will not work

function fn() { return false; }

This will work

function fn() { 
    return false; 
}