Padrino Frameworkのルーティングの仕組みが変わります はじめに タイトルのとおり、Padrino 0.13.0からはコアのルーティング実装が新しいものに替わります。 この記事では、0.13.0から追加された新機能や変更について解説します。 ルーティングの実装については、Padrino Frameworkのルーターを開発した話をご覧ください。 新機能 プリコンパイル機能 新しいルーターでは、目的のルートを高速に探索するために、一度全てのルートを正規表現にコンパイルします。 この機能は、その処理を予めサーバ起動時に行っておくことで、初回リクエスト時のオーバーヘッドを減らすことを目的とするものです。 以下に示すコードをアプリケーション直下、あるいはconfig/apps.rbのconfigure_appsブロック内に追加する事で、この機能が有効になります。
As Rails developers, we run into Sinatra apps all the time: gems such as Resque which expose a dashboard via Sinatra, legacy Sinatra apps that run alongside a main Rails app, and Sinatra APIs embedded within a Rails app, to name a few examples. Here’s a common problem: how do you share authentication between the apps? It would be really convenient to be able to do something like this in our Sinatr
This extension is part of the Sinatra::Contrib project. Run gem install sinatra-contrib to have it available. Sinatra::Streaming¶ ↑ Sinatra 1.3 introduced the stream helper. This addon improves the streaming API by making the stream object imitate an IO object, turning it into a real Deferrable and making the body play nicer with middleware unaware of streaming. IO-like behavior¶ ↑ This is useful
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く