Adds two new Twig custom functions : getChapterPath and getPagePath