Tuesday 16 May 2017

express stylesheet/javascript linking, how does it work?

Simple question

we have this link in the index.ejs

<link rel='stylesheet' href='/stylesheets/style.css' />

Well there is no stylesheets/style.css in the current Views folder, this doesn't make sense, shouldnt it be more like.

<link rel='stylesheet' href='../public/stylesheets/style.css'/>

I'm assuming its just express magic handling everything at this point.



via eti

No comments:

Post a Comment