getting closer to full port of web app starter
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
: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
|
||||
|
||||
:desc
|
||||
Calls another UCE file and executes its `RENDER(Request& context)` function.
|
||||
|
||||
If `context` is omitted, the current active request context is used.
|
||||
|
||||
:Example
|
||||
// call a common page template
|
||||
unit_render("page-template.uce");
|
||||
|
||||
// explicitly pass a request context
|
||||
unit_render("page-template.uce", context);
|
||||
|
||||
:see
|
||||
>ob
|
||||
Reference in New Issue
Block a user