百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sinatra-explained

> 编程语言
开源

我是在自己研究 Sinatra 源代码的过程中写下这篇文章的。如果您发现任何错误或不清楚之处,请指正。由于 Sinatra 缺少一个重要的功能,因此我将在下一篇文章中介绍如何实现它。

170 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

我是在自己研究 Sinatra 源代码的过程中写下这篇文章的。如果您发现任何错误或不清楚之处,请指正。由于 Sinatra 缺少一个重要的功能,因此我将在下一篇文章中介绍如何实现它。

I write this while I dig into sinatra source code myself. Please correct me if you find any mistakes or unclarity. Since Sinatra is short and concise, I hope the tutorial makes sense and it can keep pace with sinatra development with contributions from the community. The tutorial is prepared based on Sinatra 1.3.0c.

Sinatra is added as a git submodule in the sinatra folder. As this tutorial is for sinatra, I don't include the full rack source. I only list some relevant code based on rack 1.2.2 (https://github.com/rack/rack/tree/1.2.2). If you need I recommend to use tux to play with sinatra https://github.com/cldwalker/tux

It's assumed that you have read the sinatra README. Sinatra is well documented so that's the only thing you need for this tutorial.

Content:


  • tutorial_1: sinatra startup (https://github.com/zhengjia/sinatra-explained/blob/master/app/tutorial_1/tutorial_1.md)
  • tutorial_2: extensions and middleware (https://github.com/zhengjia/sinatra-explained/blob/master/app/tutorial_2/tutorial_2.md)
  • tutorial_3: routing (https://github.com/zhengjia/sinatra-explained/blob/master/app/tutorial_3/tutorial_3.md)
  • tutorial_4: request and response (work in progress)
  • tutorial_5: request cycle
  • tutorial_6: sinatra helpers
  • tutorial_7: templates

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言