Finished routing, simple website now works yay
This commit is contained in:
parent
12653f6f48
commit
7a112697ec
11 changed files with 148 additions and 15 deletions
6
test.rb
Normal file
6
test.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
route = {"hello/:hi" => "goodbye"}
|
||||
p route["hello:hi"]
|
||||
if route.keys[0].include?(":")
|
||||
route = {route.keys[0].split(":")[0].concat("") => route.values[0]}
|
||||
end
|
||||
p route
|
||||
Loading…
Add table
Add a link
Reference in a new issue