patx/micropie
update readme with new template rendering method
Commit d3ac7d0 · patx · 2025-01-31T14:41:40-05:00
Comments
No comments yet.
Diff
diff --git a/README.md b/README.md
index 26cdd97..006a52a 100644
--- a/README.md
+++ b/README.md
@@ -100,7 +100,7 @@ Dynamic HTML generation is supported via Jinja2. This happens asynchronously usi
```python
class MyApp(Server):
async def index(self):
- return await self.render_template("index.html", title="Welcome", message="Hello from MicroPie!")
+ return await self._render_template("index.html", title="Welcome", message="Hello from MicroPie!")
```
#### **`templates/index.html`**