Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Change Default Smarty Delimiter Rate Topic   - - - - -

 
  • bolek
  • Newbie
  • Members
  • Join Date: 18-Mar 17
  • 2 posts

Posted 18 March 2017 - 03:11 PM #1

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}'.



 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1,161 posts

Posted 19 March 2017 - 05:48 AM #2

Please don't wait for this :) 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

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 14,269 posts

Posted 20 March 2017 - 08:00 AM #3

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; 
}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия