I have to develop an application in Ruby without using any framework (Rails, sinatra, Shoes n all). Is there any way that we can create some HTML pages, Css files and call ruby script on a click of a button. Is there any method to do it.
我必须在Ruby中开发一个应用程序而不使用任何框架(Rails,sinatra,Shoes n all)。有没有什么办法可以创建一些HTML页面,Css文件和点击按钮调用ruby脚本。有没有办法做到这一点。
1 个解决方案
#1
3
Why would you want to do this? Frameworks take away so much of the hard work for you. If you want something extremely lightweight, use Rack.
你为什么想做这个?框架为您带来了许多艰苦的工作。如果你想要一些非常轻巧的东西,请使用Rack。
Everything you need should be there, or dig into the source code at https://github.com/rack/rack to get started
您需要的一切都应该在那里,或者在https://github.com/rack/rack上深入了解源代码以开始
#1
3
Why would you want to do this? Frameworks take away so much of the hard work for you. If you want something extremely lightweight, use Rack.
你为什么想做这个?框架为您带来了许多艰苦的工作。如果你想要一些非常轻巧的东西,请使用Rack。
Everything you need should be there, or dig into the source code at https://github.com/rack/rack to get started
您需要的一切都应该在那里,或者在https://github.com/rack/rack上深入了解源代码以开始