Ok I understand that, do you think you could at least move the part you are working on now to a separate include, like those in: https://github.com/janus-ssp/janus/tree/master/templates/editentity

Even just chopping this massive template in smaller pieces will make any refactoring later on easier. The reason to do this right now is that at this moment someone (you) has good understanding of what the code does, (probably better than say six months later).