Skip to content

Commit

Permalink
regenerate intro
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed May 17, 2011
1 parent 48b364c commit 4823696
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _includes/README.html
Expand Up @@ -180,6 +180,14 @@ <h2>Routes</h2>
end
</pre>
<p>
Or with block parameters:
</p>
<pre>
get '/download/*.*' do |path, ext|
[path, ext] # =&gt; [&quot;path/to/file&quot;, &quot;xml&quot;]
end
</pre>
<p>
Route matching with Regular Expressions:
</p>
<pre>
Expand Down
8 changes: 8 additions & 0 deletions _includes/README.jp.html
Expand Up @@ -140,6 +140,14 @@ <h2>ルート</h2>
end
</pre>
<p>
ブロックパラーメータを使用した場合:
</p>
<pre>
get '/download/*.*' do |path, ext|
[path, ext] # =&gt; [&quot;path/to/file&quot;, &quot;xml&quot;]
end
</pre>
<p>
正規表現を使ったルート:
</p>
<pre>
Expand Down

0 comments on commit 4823696

Please sign in to comment.