another way to generate template from render