A Smart Theranostic Nanocapsule for Spatiotemporally Programmable Photo‐Gene Therapy