Using Razor can improve performance and developer experience since Razor has fantastic support in Visual Studio. And so this might simplify template customization.
I think this is a create idea, then you will get intellisense as your write the templates and compile time checking. Could you put a PR together for this i would like to see how it works?
BTW now it is possible to use Razor as template engine. It is simple as:
Sample template:
Using Razor can improve performance and developer experience since Razor has fantastic support in Visual Studio. And so this might simplify template customization.