sunng87 / handlebars-iron

Handlebars middleware for Iron web framework
MIT License
119 stars 20 forks source link

Where to put CSS/JS files? #6

Closed gsingh93 closed 9 years ago

gsingh93 commented 9 years ago

I have a template called index.hbs in my templates folder and now I'm trying to include some CSS and JS files in the HTML. However, no matter where I put my CSS/JS folder, the server can never find these files. Where am I supposed to put them for them to get picked up?

sunng87 commented 9 years ago

You might want to checkout the static middleware for iron. Put these resources files in a path, and mount the middleware configured for the path.

gsingh93 commented 9 years ago

Thanks, I got it working.