Incorporate directive into main.html.