msfrisbie / mean-stripdown

Stripdown of the mean.io stack for the ngFantasyFootball application
112 stars 78 forks source link

Problems in the jade #5

Open jaymorgan opened 10 years ago

jaymorgan commented 10 years ago

I just tried following along in the tutorial at Thinkster and as soon as I tried to initially launch the clean version with the node server I got a few jade errors.

It didn't like the doctype used and it didn't like the script tags in the footer. After I found the right syntax, it all worked.

MJLang commented 10 years ago

So.. whats the right syntax?

jaymorgan commented 10 years ago

according to Jade - Template Engine

doctype html

and for the script tags in the foot.jade file just use the src by itself, without the type

script(src='js/app.js')

There seems to be a pull request along these lines also. I didn't look there before I posted this. Hope that helps. I have forked this repo and just fixed these issues if you want to pull it down from there.

rhewitt22 commented 10 years ago

+1 thanks jay

MJLang commented 10 years ago

Jup, works! Thank you!

tuxillator commented 10 years ago

I think the foot.jade problem is an erroneous tab character rather than incorrect syntax... there's some hanging white space; when I deleted that it worked for me.

+1 on the doctype tip ;)