Which I think it does. Currently it has a server / app / controller folder structure, dynamically reloads the code for those objects, and renders an HTML erb for the path given (in context of the controller if it exists). And that's the thing I love about Ruby - so little code and it's already working.
There's still a lot to do before I really am prepared to release it as a gem:
- I'd like to see if rendering html pages at the server and app level is useful. I could provide them an app and controller context and go from there.
- The controller should have access to the app and controller context.
- There's a base controller but no base app or server. I think the base server should be the main class like it is in Sinatra.
- Routing helpers. I like these in Rails, even though they're only slightly less fragile then actual hard-coded string routes would be. Unfortunately one of my design goals was to get rid of the routing file, which is where Rails builds its routes from. I've got a couple of ideas, but nothing that seems amazing.
- Better code reloading. Right now I'm just reloading the code files, which is not optimal. I remember seeing a gem that does this, I think.
- Bundle up into a gem - never done that before, should be interesting.
Also need to put some thought into how I'm going to deploy this. Step one is researching how Sinatra gets deployed, since it's basically a Sinatra app.
No comments:
Post a Comment