Development of tree and page class to allow php or markdown content