Node.js 停止帕格中的每个循环

Node.js 停止帕格中的每个循环,node.js,pug,Node.js,Pug,这是我的混音: mixin treeview(...routes) each route in routes //- path is a variable which I passed from express if (path === route) li.treeview.active if block block //- stop right here 在Javascript中,似乎break可以使用-br

这是我的混音:

mixin treeview(...routes)
  each route in routes
    //- path is a variable which I passed from express
    if (path === route)
      li.treeview.active
        if block
          block
        //- stop right here

在Javascript中,似乎
break
可以使用-break

mixin treeview(...routes)
  each route in routes
    //- path is a variable which I passed from express
    if (path === route)
      li.treeview.active
        if block
          block
          - break
          //- stop right here
一个简单的(

连字符(-)告诉帕格我们正在使用内联JavaScript