Pre-compiling template to improve performance.