mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
update README with Static help
This commit is contained in:
parent
bacfa20d9f
commit
047edc6a92
1 changed files with 9 additions and 0 deletions
|
@ -71,6 +71,15 @@ Get an agent!
|
||||||
# matches non-songbird browsers
|
# matches non-songbird browsers
|
||||||
end
|
end
|
||||||
|
|
||||||
|
= Static files
|
||||||
|
|
||||||
|
Put all of your static content in the ./public directory
|
||||||
|
|
||||||
|
root
|
||||||
|
\ public
|
||||||
|
|
||||||
|
If a file exists that maps to the REQUEST_PATH then it is served and the request end; Sinatra will look for and event that matches the path otherwise
|
||||||
|
|
||||||
= Views (if you need MVC)
|
= Views (if you need MVC)
|
||||||
|
|
||||||
All views are looked up in:
|
All views are looked up in:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue