hmans / schnitzelpress

A lean, mean blogging machine for hackers and fools.
http://schnitzelpress.org
MIT License
77 stars 8 forks source link

Mount schnitzelpress into a Rails app. #34

Open verlinden opened 12 years ago

verlinden commented 12 years ago

Is it possible ? How can we do this ?

hmans commented 12 years ago

Theoretically, it should be possible, since you can easily mount any Rack app in routes.rb; however, I haven't tried this yet, and I'm 99% sure that the current version of Schnitzelpress will break horribly (even if just for the reason that it assumes running in the / root of your domain.)

Being able to mount Schnitzelpress inside a Rails app is something I want to support officially, though, so I'm going to investigate what would need to be fixed and then, hopefully, fix it. :P

verlinden commented 12 years ago

Thanks for your answer. This would be very useful ! Bonus if you succeed to share the Rails app layout with the schnitzelpress app.

hmans commented 12 years ago

That's very unlikely to work, but I'll see if I can find a nice workaround that's not too complex.

verlinden commented 12 years ago

Yeah I know. Key feature would be to be able to mount a schnitzelpress app in a Rails one to an URL like "/blog". Then the layout could be a bit duplicate if we want the same in the two apps. The ability to easily redefine the schnitzelpress app layout (which is already possible) could be enough first ;-)

Keep up the good work !