Please create one function for rendering templates.