在表 td 中显示 URL - Pug/Jade - 当前仅显示为文本

Mat*_*ell 1 javascript pug

我有以下 Pug 片段,我试图在其中一个标签内显示 URL td。但是,当我运行此命令时,结果输出将显示,a(href=val.url+'/update')后跟正确的#{val.name}. 我该如何告诉 Pugtd标签内的值是一个链接并且#{val.name}应该是超链接?如果我删除表格并在标签href内显示标签,p它就可以正常工作。

extends layout

block content
  h1= title

  table.table.table-condensed
    thead
      tr
        th Name
        th Date Created
        th Date Modified
        th Ready for Hire
      tbody
      each val in list_genres
        tr
          td a(href=val.url+'/update') #{val.name}
          td #{val.date_created}
          td #{val.date_created}
          td No
      else
        li There are no candidates.
Run Code Online (Sandbox Code Playgroud)

Mat*_*ell 7

感谢@gandreadis,解决方案如下。识别代码后看到的任何文本(在本例中td)都仅被解释为文本。需要一条新线路。

extends layout

block content
  h1= title

  table.table.table-condensed
    thead
      tr
        th Name
        th Date Created
        th Date Modified
        th Ready for Hire
      tbody
      each val in list_genres
        tr
          td 
            a(href=val.url+'/update') #{val.name}
          td #{val.date_created}
          td #{val.date_created}
          td No
      else
        li There are no candidates.
Run Code Online (Sandbox Code Playgroud)