update readme with new template rendering method

Commit d3ac7d0 · patx · 2025-01-31T14:41:40-05:00

Changeset
d3ac7d0e03e1a35f35462b98442d8b7de5e7ea97
Parents
e47575a59985ba33b5fab27cd8e39107e0316a27

View source at this commit

Comments

No comments yet.

Log in to comment

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`**