Edit template loaded as variable