I'm not a huge fan of doing things this way. What is the downside to making one template for each type of operation and then rendering them?