Ruby:轻量级 Web 服务器
我正在 Ruby on Rails 进行开发。这是一个很好的框架等等,但现在我需要制作一个小促销网站。它可以通过简单的 HTML 完成,但应该包含两种语言的内容。 如果我能使用一些超快且轻量级的框架,那就太好了。类似于 Ruby on Rails,带有用于国际化的 ERB 模板、部分文件和 YAML 文件,但没有 ActiveRecord 和诸如此类的东西。有什么想法吗?
I'm developing at Ruby on Rails. It's good framework and etc., but now I need to make one little promo-site. It can be done at simple HTML, but should have content at two languages.
It will be very pretty if I can use some super-fast and lightweight framework. Something like Ruby on Rails, with ERB-templates, partials and YAML-files for internationalisation, but without ActiveRecord and blah-blah-blah. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果网站可以使用静态 HTML 完成,但您想要模板和 YAML 国际化的舒适性,您可能需要看看 Middleman ,正是这样做的。 :)
If the website can be done using static HTML, but you want the comfort of templates and YAML internationalization, you might want to take a look at Middleman, which does exactly that. :)
西纳特拉?蕾妮?这些是非常适合此类工作的小型框架。
Sinatra? Renee? These are the small frameworks that are great for this kind of job.
Mini-rails 也可以很好地解决您的问题,特别是如果您的网站有一天可能会增长的话或另一个
Mini-rails can also be a good solution to your problem, especially if your website might grow one day or another