Created a twig extension to handle grabbing info from templates.