1602 / compound

MVC framework. Built on Node.JS. Works on server and browser.
http://compoundjs.com
1.6k stars 183 forks source link

Serving static files #639

Closed lucaswxp closed 9 years ago

lucaswxp commented 9 years ago

Hey guys.

I didn't find any "question" label, so I can't tag this.

How do I serve my static assets? I tried putting them in app/assets folder and add app.use(express.static(compound.root + '/app/assets')) in my config, but I still got errors like:

Error: Undefined action img#logo.png(/img/logo.png)

lucaswxp commented 9 years ago

Sorry for the noob question. I'm supposed to put my public assets in public/ folder, not app/assets.