有layout.jade和链接到top-menu.jade的麻烦

时间:2015-08-05 13:41:04

标签: html express pug

我正在为我的最新项目使用快递。我之前从未使用过玉器,所以我试图理解为什么我会遇到问题,或者我是不是以错误的方式解决这个问题。

以下是我的layout.jade中的内容:

doctype html

html
  head
    title The Outpost
    meta(charset='utf-8')
    meta(name='viewport', content='width=device-width, initial-scale=1.0')
    link(href='stylesheets/style.css', rel='stylesheet')
    link(href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css", rel="stylesheet")
    link(href='https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', rel='stylesheet')
  body
    block top-menu

我有另一个名为top-menu.jade的文件,其中包含以下内容:

extends layout

block top-menu
  <!-- menu code -->

不幸的是,即使我用<p>hello</p>

之类的内容替换评论部分中的内容,也不会显示任何内容

请告诉我。

0 个答案:

没有答案