I am using Smarty for server-side patterns, and I want to use Handlebars.js for client-side patterns, but with a Smarty couse error, because Handlebars use curly braces like Smarty. I can write the Handlebars template in Smarty literal tags, but this time I cannot use Smarty in the Handlebars template.
For example: I am writing a smarty block function for cleanurl. I do not want to write a cleanurl function for javascript. Therefore, I want to use Smarty and Handlebars.js.
<div class="model-item" id="model-{{id}}"> <a href="{$mainurl}{cu}?com=model&act=view&id={{id}}{/cu}"> {{name}} </a> </div>
source share