GetLoaderNameForResource() public method

Determines is a template exists, and returns name of the loader that provides it. This is a slightly less hokey way to support the Velocity.templateExists() utility method, which was broken when per-template encoding was introduced. We can revisit this.
public GetLoaderNameForResource ( String resourceName ) : String
resourceName String Name of template or content resource
return String
Esempio n. 1
0
 /// <summary>  Determines is a template exists, and returns name of the loader that
 /// provides it.  This is a slightly less hokey way to support
 /// the Velocity.templateExists() utility method, which was broken
 /// when per-template encoding was introduced.  We can revisit this.
 /// *
 /// </summary>
 /// <param name="resourceName">Name of template or content resource
 /// </param>
 /// <returns>class name of loader than can provide it
 ///
 /// </returns>
 public static String GetLoaderNameForResource(String resourceName)
 {
     return(ri.GetLoaderNameForResource(resourceName));
 }