split render in three methods - begin,body,end