Skip to content

Commit 37c5bd5

Browse files
committed
Deployed 4fba346 with MkDocs version: 1.6.1
1 parent 993c4fa commit 37c5bd5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

guides/pages/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2026,8 +2026,8 @@ <h1 id="pages">Pages</h1>
20262026
<p>This feature is provided by <a href="https://github.com/hyperflask/flask-file-routes">Flask-File-Routes</a></p>
20272027
</div>
20282028
<h2 id="dynamic-pages">Dynamic pages</h2>
2029-
<p>Pages use the <a href="https://github.com/hyperflask/jinjapy">jinjapy</a> file format. It combines python code and a <a href="#the-page-template">jinja template</a>. The python code will be executed first on every request, then the template will be rendered.</p>
2030-
<p>The python code is enclosed inside 2 lines containing 3 dashes "---"</p>
2029+
<p>Pages use the <a href="https://github.com/hyperflask/jinjapy">jinjapy</a> file format. It combines python code and a <a href="#the-page-template">jinja template</a>. The python code will be executed first on every request, then the template will be rendered. The python code is enclosed inside 2 lines containing 3 dashes "---".</p>
2030+
<p>Create new pages in the <code>app/pages</code> folder using the <code>.jpy</code> extension.</p>
20312031
<p>A special <a href="#the-page-object">page object</a> is available in the python code. Assign values to this object so that they become available in the template.</p>
20322032
<div class="highlight"><pre><span></span><code><span class="c">---</span>
20332033
<span class="n">page</span><span class="o">.</span><span class="n">message</span> <span class="o">=</span> <span class="s2">&quot;Hello world&quot;</span>
@@ -2059,15 +2059,15 @@ <h2 id="content-pages">Content pages</h2>
20592059
<h2 id="how-routing-works">How routing works</h2>
20602060
<p>The URL rule is constructed using the following rules:</p>
20612061
<ul>
2062-
<li><code>index.ext</code> file are roots</li>
2062+
<li><code>index.jpy</code> file are roots</li>
20632063
<li>folder hierarchy are transformed to url paths:<ul>
2064-
<li><code>posts/release-annoucement.ext</code> converts to <code>/posts/release-annoucement</code></li>
2065-
<li><code>posts/index.ext</code> converts to <code>/posts</code></li>
2066-
<li><code>folder/subfolder/page.ext</code> converts to <code>/folder/subfolder/page</code></li>
2064+
<li><code>posts/release-annoucement.jpy</code> converts to <code>/posts/release-annoucement</code></li>
2065+
<li><code>posts/index.jpy</code> converts to <code>/posts</code></li>
2066+
<li><code>folder/subfolder/page.jpy</code> converts to <code>/folder/subfolder/page</code></li>
20672067
</ul>
20682068
</li>
20692069
<li>placeholders are allowed in filenames:<ul>
2070-
<li><code>posts/&lt;slug&gt;.ext</code> converts to <code>/posts/&lt;slug&gt;</code></li>
2070+
<li><code>posts/&lt;slug&gt;.jpy</code> converts to <code>/posts/&lt;slug&gt;</code></li>
20712071
</ul>
20722072
</li>
20732073
</ul>

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)