Thanks for the reply. It sounds like there is no better way to accomplish this. This is a hack because the value passed to Template() is not used but it still requires a value to be passed in.
As a tip for anyone who needs to do this, if you are not in Razor context and there cannot do @<text></text> (for example in an extension method), you can do x => x instead.
I will likely create an extension method Template() that does not take a parameter. I believe that is less confusing.