asyncRender()¶
Async version of render(). Returns a Promise. Use this when your templates contain async filters, async custom tags, or async library components.
Signature¶
Returns¶
Promise<string> — The rendered HTML.
When to Use¶
Use asyncRender() when your templates contain:
-
Async filters (returning Promises)
-
Async custom tags (render return a Promise)
-
Async library helpers
-
{% load %}libraries with async components
Using async features with render() throws: Async node encountered during sync render. Use asyncRender() instead.