Skip to content

Commit a2e6f94

Browse files
authored
Merge pull request #289 from eemanioui/hyperlink_issues
fixed multiple broken internal hyperlinks within the intro page
2 parents d071e38 + d935c89 commit a2e6f94

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

_includes/README.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ <h2>Routes</h2>
205205
be merged into the global <code class="highlighter-rouge">:mustermann_opts</code> hash described
206206
<a href="#available-settings">below</a>.</p>
207207

208-
<h2>Conditions</h2>
208+
<h2 id="conditions">Conditions</h2>
209209

210210
<p>Routes may include a variety of matching conditions, such as the user agent:</p>
211211

@@ -274,7 +274,7 @@ <h2>Conditions</h2>
274274
</code></pre>
275275
</div>
276276

277-
<h2>Return Values</h2>
277+
<h2 id="return-values">Return Values</h2>
278278

279279
<p>The return value of a route block determines at least the response body
280280
passed on to the HTTP client, or at least the next middleware in the
@@ -1177,7 +1177,7 @@ <h3>Templates with <code class="highlighter-rouge">yield</code> and nested layou
11771177
<p>Currently, the following rendering methods accept a block: <code class="highlighter-rouge">erb</code>, <code class="highlighter-rouge">haml</code>,
11781178
<code class="highlighter-rouge">liquid</code>, <code class="highlighter-rouge">slim </code>, <code class="highlighter-rouge">wlang</code>. Also the general <code class="highlighter-rouge">render</code> method accepts a block.</p>
11791179

1180-
<h3>Inline Templates</h3>
1180+
<h3 id="inline-templates">Inline Templates</h3>
11811181

11821182
<p>Templates may be defined at the end of the source file:</p>
11831183

@@ -1380,7 +1380,7 @@ <h2>Helpers</h2>
13801380

13811381
<p>The effect is the same as including the modules in the application class.</p>
13821382

1383-
<h3>Using Sessions</h3>
1383+
<h3 id="using-sessions">Using Sessions</h3>
13841384

13851385
<p>A session is used to keep state during requests. If activated, you have one
13861386
session hash per user session:</p>
@@ -1658,7 +1658,7 @@ <h3>Setting Body, Status Code and Headers</h3>
16581658
<p>Like <code class="highlighter-rouge">body</code>, <code class="highlighter-rouge">headers</code> and <code class="highlighter-rouge">status</code> with no arguments can be used to access
16591659
their current values.</p>
16601660

1661-
<h3>Streaming Responses</h3>
1661+
<h3 id="streaming-responses">Streaming Responses</h3>
16621662

16631663
<p>Sometimes you want to start sending out data while still generating parts of
16641664
the response body. In extreme examples, you want to keep sending data until
@@ -1855,7 +1855,7 @@ <h3>Browser Redirect</h3>
18551855
</code></pre>
18561856
</div>
18571857

1858-
<h3>Cache Control</h3>
1858+
<h3 id="cache-control">Cache Control</h3>
18591859

18601860
<p>Setting your headers correctly is the foundation for proper HTTP caching.</p>
18611861

@@ -1930,7 +1930,7 @@ <h3>Cache Control</h3>
19301930
</code></pre>
19311931
</div>
19321932

1933-
<p>Use the <code class="highlighter-rouge">:static_cache_control</code> setting (see <a href="#cache-control">below</a>) to add
1933+
<p>Use the <code class="highlighter-rouge">:static_cache_control</code> setting (see <a href="#static-cache-control">below</a>) to add
19341934
<code class="highlighter-rouge">Cache-Control</code> header info to static files.</p>
19351935

19361936
<p>According to RFC 2616, your application should behave differently if the
@@ -2236,7 +2236,7 @@ <h2>Configuration</h2>
22362236
</code></pre>
22372237
</div>
22382238

2239-
<h3>Configuring attack protection</h3>
2239+
<h3 id="configuring-attack-protection">Configuring attack protection</h3>
22402240

22412241
<p>Sinatra is using
22422242
<a href="https://github.com/sinatra/sinatra/tree/master/rack-protection#readme">Rack::Protection</a> to
@@ -2273,7 +2273,7 @@ <h3>Configuring attack protection</h3>
22732273
</code></pre>
22742274
</div>
22752275

2276-
<h3>Available Settings</h3>
2276+
<h3 id="available-settings">Available Settings</h3>
22772277

22782278
<dl>
22792279
<dt>absolute_redirects</dt>
@@ -2461,7 +2461,7 @@ <h3>Available Settings</h3>
24612461
Enabled by default in classic style, disabled for modular apps.
24622462
</dd>
24632463

2464-
<dt>static_cache_control</dt>
2464+
<dt id="static-cache-control">static_cache_control</dt>
24652465
<dd>
24662466
When Sinatra is serving static files, set this to add
24672467
<tt>Cache-Control</tt> headers to the responses. Uses the

0 commit comments

Comments
 (0)