Code generation is pretty simple and you are likely already doing it. In almost all modern web application frameworks there is some sort of template mechanism. Read more here: https://flatlogic.com/blog/10-best-low-code-generation-tools-solution-guide/