uce/site/doc/pages/unit_render.txt
2026-06-16 23:02:45 +00:00

26 lines
476 B
Plaintext

:sig
void unit_render(String file_name)
void unit_render(String file_name, Request& context)
:params
file_name : UCE file to load and execute
context : optional request context to pass into the target page
:see
>ob
unit_call
unit_load
1_RENDER
component
:content
Calls another UCE file and executes its `RENDER(Request& context)` function.
If `context` is omitted, the current active request context is used.
Examples:
:example
unit_render("examples/sample_unit.uce");