Can convert templates with extends/renderBody now, but the code is ugly