Jade indentation errors

こ雲淡風輕ζ 提交于 2019-12-02 18:53:46

In the lower right-hand corner of Sublime Text, there should be a label that says Spaces: N or Tab Size: N where N is a number. Select this and you'll see options to convert the entire document's indentation to use either tabs or spaces:

  • Convert Indentation to Spaces
  • Convert Indentation to Tabs
Rahul Dhiman

for edit form on server.js file set variable like this

var applications = row;
res.render("edit", { applications : applications[0] }); 

for edit.jade file :

block content
table
    thead
      tr
        th First Name
        th Last Name
    tbody
      - each item in applications
        tr
          td= item.username
          td= item.email
Gabriel Beauchemin-Dauphinais

This answer is an extension to the answer of André Dion (I don't have enough reputation to comment on his post). One can also do the same procedure he described in Visual Studio Code Directly. If you use Pug in Visual Studio Code it will be very nice.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!