Fail unresolved component renders with HTTP 500
This commit is contained in:
@@ -14,6 +14,8 @@ Renders another `.uce` file as a component and returns the captured output as a
|
||||
|
||||
Component props are passed in `context.props`.
|
||||
|
||||
Calling a missing component or named component handler is a server error and sets HTTP status 500. Probe intentionally optional components with `component_exists()` before calling `component()`.
|
||||
|
||||
Because `<?= ... ?>` HTML-escapes its value, embed component markup with `<?: component(...) ?>`, `print(component(...))`, or use `component_render(...)` for direct output.
|
||||
|
||||
## Named Components
|
||||
|
||||
Reference in New Issue
Block a user