有人为 Sinatra 构建了导航/菜单助手吗?
我看到有 用于静态的, 用于 Rails 菜单构建器的 Ruby 工具箱中提供了大量内容, 但我似乎无法找到专门为 Sinatra 设计的一个。
I see there is one for staticmatic,
and plenty in the Ruby toolbox for rails menu builders,
but I can't seem to track one down specifically for Sinatra.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,没有,sinatra 没有菜单助手。
您可以在 Sinatra in the Wild 查看 sinatra 的所有库和扩展(向下滚动大约一半)页)。还有 Padrino 框架,它基于 Sinatra 构建,添加了更多功能。这可能是您正在寻找的东西最有可能出现的地方。
As far as I know, no, there is no menu helper for sinatra.
You can look at all the libraries and extensions for sinatra at Sinatra in the Wild (scroll about halfway down the page). There is also the Padrino Framework, which builds on Sinatra by adding more functionality. That is probably where something you are looking for is most likely to appear.
流行的 simple-menu gem 可与 Sinatra 以及 Rails 配合使用。
The popular simple-menu gem works with Sinatra as well as Rails.