Extract html template