You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/pages/index.html
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2026,8 +2026,8 @@ <h1 id="pages">Pages</h1>
2026
2026
<p>This feature is provided by <ahref="https://github.com/hyperflask/flask-file-routes">Flask-File-Routes</a></p>
2027
2027
</div>
2028
2028
<h2id="dynamic-pages">Dynamic pages</h2>
2029
-
<p>Pages use the <ahref="https://github.com/hyperflask/jinjapy">jinjapy</a> file format. It combines python code and a <ahref="#the-page-template">jinja template</a>. The python code will be executed first on every request, then the template will be rendered.</p>
<p>Pages use the <ahref="https://github.com/hyperflask/jinjapy">jinjapy</a> file format. It combines python code and a <ahref="#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>
2031
2031
<p>A special <ahref="#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>
0 commit comments