Permalink
Browse files

regenerate documentation

  • Loading branch information...
1 parent f9e8bd4 commit 1a05e726b9646c1f6511894b7a26c6adb7631a62 @rkh rkh committed Aug 19, 2012
@@ -482,7 +482,7 @@
<h3>Haml Templates</h3>
<table class="rdoc-list"><tr><td class="rdoc-term"><p>Abhängigkeit</p></td>
<td>
-<p><a href="http://haml-lang.com/">haml</a></p>
+<p><a href="http://haml.info/">haml</a></p>
</td></tr><tr><td class="rdoc-term"><p>Dateierweiterungs</p></td>
<td>
<p><tt>.haml</tt></p>
@@ -475,7 +475,7 @@
<h3>Plantillas Haml</h3>
<table class="rdoc-list"><tr><td class="rdoc-term"><p>Dependencias</p></td>
<td>
-<p><a href="http://haml-lang.com/">haml</a></p>
+<p><a href="http://haml.info/">haml</a></p>
</td></tr><tr><td class="rdoc-term"><p>Extensiones de Archivo</p></td>
<td>
<p><tt>.haml</tt></p>
@@ -1618,10 +1618,10 @@
<p>Sinatra usa <a
href="https://github.com/rkh/rack-protection#readme">Rack::Protection</a>
-para defender a tu aplicación de los ataques más comunes. Tenés que
-tener en cuenta que como consecuencia de esto puede venir asociada una
-disminución del rendimiento de tu aplicación. Si por este, o algún otro
-motivo, querés desactivar está funcionalidad, podés hacerlo:</p>
+para defender a tu aplicación de los ataques más comunes. Si por algún
+motivo, querés desactivar esta funcionalidad, podés hacerlo como se
+indica a continuación (tené en cuenta que tu aplicación va a quedar
+expuesta a un montón de vulnerabilidades bien conocidas):</p>
<pre>disable :protection</pre>
@@ -94,7 +94,7 @@
</ol>
</div>
-<p>= Sinatra</p>
+
<p><em>Attention : Ce document correspond à la traduction de la version
anglaise et il n'est peut être plus à jour.</em></p>
@@ -475,7 +475,7 @@
<h3>Templates Haml</h3>
<table class="rdoc-list"><tr><td class="rdoc-term"><p>Dépendances</p></td>
<td>
-<p><a href="http://haml-lang.com/">haml</a></p>
+<p><a href="http://haml.info/">haml</a></p>
</td></tr><tr><td class="rdoc-term"><p>Extensions de fichier</p></td>
<td>
<p><tt>.haml</tt></p>
@@ -1609,7 +1609,8 @@
href="https://github.com/rkh/rack-protection#readme">Rack::Protection</a>
pour protéger votre application contre les principales attaques
opportunistes. Vous pouvez très simplement désactiver cette
-fonctionnalité (ce qui devrait améliorer les performances) :</p>
+fonctionnalité (ce qui exposera votre application à beaucoup de
+vulnerabilités courantes) :</p>
<pre>disable :protection</pre>
View
@@ -359,7 +359,7 @@
<a name='Views%20/%20Templates'></a>
<h2>Views / Templates</h2>
-<p>Each template language is exposed as via its own rendering method. These
+<p>Each template language is exposed via its own rendering method. These
methods simply return a string:</p>
<pre>get '/' do
@@ -460,7 +460,7 @@
<h3>Haml Templates</h3>
<table class="rdoc-list"><tr><td class="rdoc-term"><p>Dependency</p></td>
<td>
-<p><a href="http://haml-lang.com/">haml</a></p>
+<p><a href="http://haml.info/">haml</a></p>
</td></tr><tr><td class="rdoc-term"><p>File Extensions</p></td>
<td>
<p><tt>.haml</tt></p>
@@ -968,7 +968,7 @@
end</pre>
<p>To improve security, the session data in the cookie is signed with a
-session secret. A random secret is generate for you by Sinatra. However,
+session secret. A random secret is generated for you by Sinatra. However,
since this secret will change with every start of your application, you
might want to set the secret yourself, so all your application instances
share it:</p>
@@ -1104,16 +1104,16 @@
<p>This allows you to implement streaming APIs, <a
href="http://dev.w3.org/html5/eventsource/">Server Sent Events</a> and can
-be used as basis for <a
+be used as the basis for <a
href="http://en.wikipedia.org/wiki/WebSocket">WebSockets</a>. It can also
be used to increase throughput if some but not all content depends on a
slow resource.</p>
<p>Note that the streaming behavior, especially the number of concurrent
-request, highly depends on the web server used to serve the application.
+requests, highly depends on the web server used to serve the application.
Some servers, like WEBRick, might not even support streaming at all. If the
server does not support streaming, the body will be sent all at once after
-the block passed to <tt>stream</tt> finished executing. Streaming does not
+the block passed to <tt>stream</tt> finishes executing. Streaming does not
work at all with Shotgun.</p>
<p>If the optional parameter is set to <tt>keep_open</tt>, it will not call
@@ -1558,7 +1558,8 @@
<p>Sinatra is using <a
href="https://github.com/rkh/rack-protection#readme">Rack::Protection</a>
to defend you application against common, opportunistic attacks. You can
-disable this behavior if needed:</p>
+easily disable this behavior (which will open your application to tons of
+common vulnerabilities):</p>
<pre>disable :protection</pre>
@@ -1670,7 +1671,9 @@
<dd>
<p>show a stack trace in the browser when an exception happens. Enabled by
default when <tt>environment</tt> is set to
-<tt>&quot;development&quot;</tt>, disabled otherwise.</p>
+<tt>&quot;development&quot;</tt>, disabled otherwise. Can also be set to
+<tt>:after_handler</tt> to trigger app-specified error handling before
+showing a stack trace in the browser.</p>
</dd><dt>static</dt>
<dd>
<p>Whether Sinatra should handle serving static files. Disable when using a
@@ -260,7 +260,7 @@
<p><tt>./views/index.haml</tt>を表示します。</p>
<p><a
-href="http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#options">Haml's
+href="http://haml.info/docs/yardoc/file.HAML_REFERENCE.html#options">Haml's
options</a>
はSinatraの設定でグローバルに設定することができます。
<a href="http://www.sinatrarb.com/configuration.html">Options and
@@ -97,6 +97,9 @@
+<p><em>주의: 이 문서는 영문판의 번역본이며 최신판 문서와
+다를 수 있음.</em></p>
+
<p>Sinatra는 최소한의 노력으로 루비 기반 웹
애플리케이션을 신속하게 만들 수 있게 해 주는 DSL이다:</p>
@@ -479,7 +482,7 @@
<h3>Haml 템플릿</h3>
<table class="rdoc-list"><tr><td class="rdoc-term"><p>의존</p></td>
<td>
-<p><a href="http://haml-lang.com/">haml</a></p>
+<p><a href="http://haml.info/">haml</a></p>
</td></tr><tr><td class="rdoc-term"><p>파일 확장자</p></td>
<td>
<p><tt>.haml</tt></p>
@@ -175,7 +175,7 @@
<p>Renderiza <tt>./views/index.haml</tt>.</p>
<p><a
-href="http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#options">Opções
+href="http://haml.info/docs/yardoc/file.HAML_REFERENCE.html#options">Opções
Haml</a> podem ser setadas globalmente através das configurações do
sinatra, veja <a
href="http://www.sinatrarb.com/configuration.html">Opções e
@@ -176,7 +176,7 @@
<p>Renderiza <tt>./views/index.haml</tt>.</p>
<p><a
-href="http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#options">Opções
+href="http://haml.info/docs/yardoc/file.HAML_REFERENCE.html#options">Opções
Haml</a> podem ser definidas globalmente através das configurações do
sinatra, veja <a
href="http://www.sinatrarb.com/configuration.html">Opções e
@@ -488,7 +488,7 @@
<h3>Haml шаблоны</h3>
<table class="rdoc-list"><tr><td class="rdoc-term"><p>Зависимости</p></td>
<td>
-<p><a href="http://haml-lang.com/">haml</a></p>
+<p><a href="http://haml.info/">haml</a></p>
</td></tr><tr><td class="rdoc-term"><p>Расширения файлов</p></td>
<td>
<p><tt>.haml</tt></p>
@@ -334,7 +334,7 @@
<p>渲染 <tt>./views/index.haml</tt>。</p>
<p><a
-href="http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#options">Haml的选项</a>
+href="http://haml.info/docs/yardoc/file.HAML_REFERENCE.html#options">Haml的选项</a>
可以通过Sinatra的配置全局设定, 参见 <a
href="http://www.sinatrarb.com/configuration.html">选项和配置</a>,
也可以个别的被覆盖。</p>

0 comments on commit 1a05e72

Please sign in to comment.