【发布时间】:2015-02-08 06:06:07
【问题描述】:
我想在布局中添加一个页脚,以便在我的 Express 应用程序的所有页面上使用。我跟着这个相关教程学习
http://www.devthought.com/code/use-jade-blocks-not-layouts/
但我似乎遗漏了什么。这是我的代码。
layout.jade
doctype html
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
body
block content
block footer
footer.jade
extends layout
block footer
footer
ul
li
a(href="/team") Team
li
a(href="/privacy") Privacy
p
| company name <br>
| © 2014, All Rights Reserved
【问题讨论】: