description = "This layout tests the page life cycle"
==
function onStart() {
    $this['layoutStartVar'] = 1;
}

function onBeforePageStart() {
    $this['layoutBeforePageStartVar'] = 2;
}

function onEnd() {
    $this['layoutEndVar'] = 5;
}
==
{{ page() }}