mirror of
https://github.com/alexhopeoconnor/DFTE.git
synced 2026-10-04 04:28:10 +10:00
docs: clarify DFTE response ownership guidance
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
|
||||
Build a `PlaceholderRegistry` once during setup, but allocate a fresh `TemplateContext` for each request. A shared context would mix rendering state when clients overlap.
|
||||
|
||||
| Need | Use |
|
||||
| --- | --- |
|
||||
| A request-owned dynamic render context | `beginSafeTemplateResponse()` |
|
||||
| A fixed response-slot pool owned by the application | `beginBorrowedChunkedResponse()` |
|
||||
|
||||
```cpp
|
||||
#include <TemplateEngine.h>
|
||||
#include <TemplateEngineAsyncWeb.h>
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
# DFTE documentation
|
||||
# DeviceFramework Template Engine (DFTE) documentation
|
||||
|
||||
| I want to… | Read |
|
||||
| --- | --- |
|
||||
|
||||
Reference in New Issue
Block a user