pass data through template