rendering page tree as code block