protected function doc_context($file_name, $name = 'doc') { $context = new \Context(\Helpers\Page::page_context()->stack()); $context->insert_before('handler', $this->doc_metadata($file_name), $name); return $context; }
function get_relative($id = 0) { return Page::relative($id); }