Move template to loader