html - Breaking #each loop in handlebar -


In my SSCX file there is a handle bar code like me.

  & lt; Script id = "ex" type = "text / x-handlebars-template" & gt; {{#each model}} {{#if condition}} // is required to be broken, how to do it {{/ if}} {{/ each}} & lt; / Script & gt; Just pass this object to the JavaScript function, give the necessary reason and return it.  
  & lt; Script type = "text / javascript" & gt; Handlebars.registerHelper ("ifSet", function) {var number = 0; while (calculation & lt; model.length) {// if (logic position) {// return 'breakthrough' or break; //}} Return;}); & Lt; / Script & gt; & Lt; Script id = "ex" type = "text / x-handlebars-template" & gt; {{IfSet model}} & lt; / Script & gt;    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -