Tuesday, 6 August 2013

nodejs, jade multiple inheritance doesn't work?

nodejs, jade multiple inheritance doesn't work?

I have multiple levels on inheritance,
test-layout.jade
html
head
title My Site - #{title}
body
block content
block foot
#footer
p some footer content
test.jade
extends test-layout
block content
h1 titllllllllle
p some text
test-child.jade
extends test
block content
.sidebar
li
block sidebar
p nothing
.primary
li
block primary
p nothing
test-grandson
extend test-child
block sidebar
b this is grandson sidebar
block primary
b this is grandson primary
type http://*/test
I got this problem:
500 Error: F:\express\views\test\test-layout.jade:2
1| extends test-layout
> 2|
3| block content
4| h1 my titllllllllle
5| p some text unexpected token "indent"
type http://*/test-child
I got this:
extends test-layout
nothing
nothing
Anyone could help out?
thanks!

No comments:

Post a Comment