url = "/cycle-test"
layout = "cycle-test"
==
<?
function onStart() {
    $this['pageStartVar'] = 3;
}

function onEnd() {
    $this['pageEndVar'] = 4;
}
?>
==
{{ layoutStartVar }}{{ layoutBeforePageStartVar }}{{ pageStartVar }}{{ pageEndVar }}{{ layoutEndVar }}