Build HTML by injecting content into templates.