(As discussed above, my preference would be for separating out the shared code to its own template, and pulling it into each via a simple "include")