Implemented the taemplate rendering functionality