Created a Router class that takes care of generating links between relative pages. Added a link() function in Twig.