Over the past few months, I have been working on and off porting the ruby
Sinatra framework to OpenResty. I'm calling it --
sinatra-openresty.
I'm a big fan of the DSL of Sinatra and how it maps to HTTP request and response loop. It makes it easy to whip together a HTTP interface for already written pieces of code or allows you to write complex routing logic.
No, not really. I've implemented most of the routing pattern matching, the request object, and the response object.
This is a work in progress. I'm currently using it to develop simple sites with OpenResty. I am doing this with
TDD and borrowing quite a few paradigms from sinatra.rb.
I'm actually curious if anyone is interested or had any opinions. I was thinking about starting to write some documentation.
I have a few things on my todo list, which I would like to build support for.
* Cookies
* Session integration with https://github.com/agentzh/encrypted-session-nginx-module
* expand DSL to have
* template engine support
* page caching with HTTP headers (Etag, Cache-control, Last Modified, etc)
Any questions or comments are welcome. This fun to work. Really want to say thanks to OpenResty contributors for the great stack that have provided.
Regards,
jtarchie