Extract card html code to separate file.