Adding New Pages¶
If you have custom materials that don’t make sense to add to an existing page, you can inject a new routed page into the application structure. New pages can either be behind a login (private pages) or visible without a login (public pages).
Public Pages¶
To install a public page, in your
templates/<your_host>/
folder, make a folder namedcustom
.In that
custom
folder, make a folder namedpublic
Create your public file. The required extension on the file is .html. Nested directories are not supported.
Open your browser to https://yoursite.com/c/
file
. Your file should be visible and render appropriately.These are rendered templates through the Jinja templating system, so be careful about braces.
- Available variables:
api_url: The fully qualified URL for API requests.
app_token: The application token for API requests.
Private Pages¶
To install a private page, in your
templates/<your_host>/
folder, make a folder namedcustom
.In that
custom
folder, make a folder namedprivate
Create your private file. The required extension on the file is .html. Nested directories are not supported.
Open your browser to https://yoursite.com/t/
file
. Your file should be visible and render appropriately if you are logged in. Not logged in users will be redirected to the login page.These are rendered templates through the Jinja templating system, so be careful about braces.
- Available variables:
api_url: The fully qualified URL for API requests.
app_token: The application token for API requests.
token: The user token for API requests.