我希望在我的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