jlong / serve

Serve is a small Rack-based web server and rapid prototyping framework for Web applications (specifically Rails apps). Serve is meant to be a lightweight version of the Views part of the Rails MVC. This makes Serve an ideal framework for prototyping Rails applications or creating simple websites. Serve has full support for Rails-style partials and layouts.
http://get-serve.com
Other
836 stars 90 forks source link

index.css served as directory index file #122

Open polarblau opened 9 years ago

polarblau commented 9 years ago

If both — index.html and index.css files — are present within a directory the CSS file will be served as directory index.

polarblau commented 9 years ago

Failing spec in PR #123 .

polarblau commented 9 years ago

After reading the code a bit, it seems it’s this TODO which would cover this case: https://github.com/jlong/serve/blob/master/lib/serve/router.rb#L28

ghost commented 9 years ago

how do I have index.css in my respiratory?