Compile templates with contents to html pages.