#136 made the templating engine two pass, needs to fix escaping issues yet