Capy-Bearer Documentation

ob_get

lib call

Capy

function ob_get(request : capture any) string

Description

ob_get() returns the current output buffer contents.

The buffer stays active after this call.

Parameters

request : the caller's request, captured when omitted

Return Values

the current output buffer contents

Example

Capy

ob_start()
print("partial")
var output := ob_get()
ob_close()
print(output, "\n")

Output

partial