fix: remove deleted base.html template and fix markdown rendering in app.py

This commit is contained in:
2025-01-27 23:42:24 +00:00
parent 3cba8b3cfb
commit 966a72b708
4 changed files with 48 additions and 85 deletions
+3 -1
View File
@@ -50,7 +50,7 @@ These are instructions for USING Dreamii, not to modify it.
python3 -m venv .venv
source .venv/bin/activate
pip install git+https://molodetz.nl/retoor/dreamii.git
echo > "# My first dreamii site" > index.md
echo "# My first dreamii site" > index.md
dreamii serve 7331
```
@@ -93,6 +93,7 @@ print(
"</pre>"
)
{% endpy3 %}
```
### Example database usage
See here an example of a visitor counter on your website. This is all you have to do. It's a persistent database. No configuration required! For more information how to use the database, visit the [dataset documentation](https://dataset.readthedocs.io/en/latest/).
@@ -108,6 +109,7 @@ def increment(counter_name="default")
print(f"<p>This page had been visited {counter()} times.</p>")
{% endpy3 %}
```
## Hidden files
Files prefixed with `_` or `.` will not be displayed or rendered by Dreamii. This is for security and it is a convenient way to mark base templates.