rendering by given template