Precompile repeated templates.