Used render() to render template