doctype html
html
head
title zfpxnode.js
body
jade index.jade 命令行进行编译
jade -P index.jade 美化缩进
jade -P -w index.jade 实时监控
doctype html
html
head
title zfpxnode.js
body
h1 welcome to zfpx to study node.js
#id.classname
h1.title(id='myid',class='myclass') zfpx
style.
body {background-color: orange}
p
| 1.a
| 2.b
| 3.c
| 4.d
- var courses = ['node.js','jade']
each item in courses
p=item
head.jade
meta(charset='utf-8')
title i am title
layout.jade
//-extends layout
1.如果哪个模板继承了layout,就可以把它里面的block替换 block desc
head
include head
include title.html
body
block desc
p desc from layout
block title
block content
#tail I am tail
extends.jade
extends layout.jade
block title
p I am a title
block content
p I am the content
block desc
p desc from extends