Output buffering can be used to create nested templates, allowing for reusable, organized content.
In Lua pages, expect a free global variable (here, page
) is a table with strings to inject. The "base" template might look like this:
<? print('HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n')
?>