Rewrite template to single line for precompiling