Split HTML-specific templating into separate file