Active Electronic Templates