阅读背景:

如何在pug.js模板中正确拼写Django的语句?

来源:互联网 

When I try to compile this:

当我尝试编译时:

doctype html
html(lang="en")
  head
    meta(http-equiv = "Content-Type " content ="text/html ;charset=utf-8")
    title = category.name
  body
    h1 Сьпiс таварау
    h2 Катэгорыi:
    ul
       for cat in cats 
        li: a(href='/go.html?url=/goods/{{cat.id}}/') {{cat.name}}
      endfor
    h2 Тавары
    table
      tr
        th Назва
        th Есьць у наяунасьцi
      for good in goods
        tr
          td a(href = '/goods/good/{{good.id}}/'){{good.name}}
      endfor            
doctyp



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: