Adding support for defaultTemplate to support precompiled templates