Sinatra Recipes

Sinatrarb 社区贡献的指南和技巧。(contributed recipes and techniques http://recipes.sinatrarb.com/.)

Github星跟踪图

Sinatra Recipes

Community contributed recipes and techniques for the Sinatra Web
Framework
.

Why yet another doc project?

Quite simply, the Sinatra README and Book have become long in the tooth.

This project is to extract any redundant and overlap between the two sources,
and create a home for user contributed recipes and documentation to take form.

How can I help?

Got a recipe or tutorial for Sinatra? Awesome, this is
the first place you should go if you're looking to contribute.

Once you have forked the project send a pull
request
, just be sure to follow the styling
guidelines
.

You can also get a hold of us on irc or the mailinglist.

Don't have any ideas? Check out the existing issue tracker for
recipes that have been requested or are in progress.

Here's the run down

To get started you should clone the repository from GitHub:

git clone git://github.com/sinatra/sinatra-recipes.git

Now once you cd into sinatra-recipes you should see a few things.

First you should take note of the application files:

app.rb # a tiny application for displaying the contributed recipes
config.ru # rackup file for deploying to heroku
Gemfile # dependencies file for bundler to run the app

If you want to run the application yourself first you need the bundler gem.

gem install bundler

If you are on Rubinius make sure that you have the latest bundler version
installed. Versions prior to 1.0.10 won't work.

# then install the application dependencies
bundle install

Once that is complete, you should only need to run rackup in the application
root and visit: localhost:9292

Since the application just maps the flat files, you can browse either the
source or the web app to view recipes.

If you check out the source you will see a few folders listed, in each folder
there is a README.md that will briefly explain the topic. This can also be
view by going to /p/:topic where topic is the folder you wish to view.

In each folder there should be a number of recipes pertaining to each topic.

On translations

Currently we're not supporting translations in the main repository.

However, if you'd like to maintain a fork for translating the docs then feel
free to do so, and add your fork to the list of translations in the
wiki
.

主要指标

概览
名称与所有者sinatra/sinatra-recipes
主编程语言CSS
编程语言Ruby (语言数: 5)
平台BSD, Cross-platform, Linux, Mac, Windows
许可证
所有者活动
创建于2011-02-25 16:39:23
推送于2023-12-22 15:08:55
最后一次提交
发布数0
用户参与
星数460
关注者数28
派生数141
提交数345
已启用问题?
问题数40
打开的问题数9
拉请求数100
打开的拉请求数4
关闭的拉请求数21
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?