Incorrect usage of render() should have been template()