url rewrite and reusing index.lua
One ring rule them all!
One index.lua can rule the whole directory for saving a lot of index.lua in every sub-dir.
url: https://www.xxx.net/alotoffiles/index.lua
url: https://www.xxx.net/alotoffiles/123/
url: https://www.xxx.net/alotoffiles/123/666/
All of them both use the index.lua in the alotoffiles for rendering.
something like converting
http://localhost/post/?id=1
to
http://localhost/post/1/
So, for example, if index.lua exists, but not 1/index.lua, then Algernon could check if index.lua contains a handler for /1, possibly by calling a function in index.lua to check?
So, for example, if
index.luaexists, but not1/index.lua, then Algernon could check ifindex.luacontains a handler for/1, possibly by calling a function inindex.luato check?
Exactly!
Seems like https://github.com/xyproto/algernon/issues/95 is a better handling for this? (No pun intended.)
I believe this is now done with #130 but feel free to reopen if you disagree.