UCE Docs / unit_render

Signature

void unit_render(String file_name)
void unit_render(String file_name, Request& context)

Parameters

file_name : UCE file to load and execute
context : optional request context to pass into the target page

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");
Output
hello from the sample unit