Added option to customize the wrapper for precompiled templates