code: protected Loader<?> getTemplateLoaderForPath(String templateLoaderPath) {
          if (templateLoaderPath.startsWith(ResourceUtils.CLASSPATH_URL_PREFIX)) {
              String basePackagePath = templateLoaderPath.substring(ResourceUtils.CLASSPATH_URL_PREFIX.length());
              if (log.isDebugEnabled()) {
                  log.debug("Template loader path [" + templateLoaderPath + "] resolved to class path [" + basePackagePath + "]");
              }
              ClasspathLoader loader = new ClasspathLoader(environment.getClassLoader());
              loader.setPrefix(basePackagePath);
              return loader;
          } else if (templateLoaderPath.startsWith(ResourceUtils.FILE_URL_PREFIX)) {
              File file = new File(templateLoaderPath.substring(ResourceUtils.FILE_URL_PREFIX.length()));
              String prefix = file.getAbsolutePath();
              if (log.isDebugEnabled()) {
                  log.debug("Template loader path [" + templateLoaderPath + "] resolved to file path [" + prefix + "]");
              }
              FileLoader loader = new FileLoader();
              loader.setPrefix(prefix);
              return loader;
          } else {
              File file = new File(environment.getBasePath(), templateLoaderPath);
              String prefix = file.getAbsolutePath();
              if (log.isDebugEnabled()) {
                  log.debug("Template loader path [" + templateLoaderPath + "] resolved to file path [" + prefix + "]");
              }
              FileLoader loader = new FileLoader();
              loader.setPrefix(prefix);
              return loader;
          }
      }
docs: Determine a Pebble Engine Template Loader for the given path.
  
  @param templateLoaderPath the path to load templates from
  @return an appropriate Template Loader