Add debug option to template Loader