I’m using Handlebar js for templating and i’m creating a li element as shown below.
var liClass="xyz" ;
var class2 = "abc";
return new Handlebars.SafeString("<li class="+ liClass + ">" + "</li>" );
How can i added class2 along with liClass? I tried adding it to safestring but it doesn’t show up in DOM properly.
Simply include multiple values separated by a space, and wrapped in quotation marks: