Skip to content

Commit

Permalink
Added optional parameter info to the README.fr
Browse files Browse the repository at this point in the history
  • Loading branch information
michelc committed Aug 2, 2011
1 parent ba01aa8 commit a8b5086
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.fr.rdoc
@@ -1,4 +1,4 @@
= Sinatra
= Sinatra
<i>Attention : Ce document correspond à la traduction de la version anglaise et
il n'est peut être plus à jour.</i>

Expand Down Expand Up @@ -101,6 +101,12 @@ Là encore on peut utiliser les paramètres de bloc :
"Bonjour, #{c} !"
end

Les routes peuvent aussi comporter des paramètres optionnels :

get '/posts.?:format?' do
# répond à "GET /posts" et aussi à "GET /posts.json", "GET /posts.xml" etc...
end

=== Conditions

Les routes peuvent définir toutes sortes de conditions, comme par exemple le
Expand Down

0 comments on commit a8b5086

Please sign in to comment.