/// <summary>
 /// Gets a relative path to a specified module.
 /// </summary>
 /// <param name="module">The module.</param>
 /// <returns>The relative path to the specified module.</returns>
 public static string GetModuleShortPath(MvcModuleBase module)
 {
     return(string.Concat("~/~", module.Name, "/"));
 }
 /// <summary>
 /// Gets a relative path to a file or directory which module contains.
 /// </summary>
 /// <param name="module">The module with file or directory.</param>
 /// <param name="relativePath">The path to the file or directory.</param>
 /// <returns>The relative path to the module.</returns>
 public static string GetModulePath(MvcModuleBase module, string relativePath)
 {
     return(string.Concat(GetModuleShortPath(module), relativePath.TrimStart('/')));
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the MvcModuleEmbeddedFS class.
 /// </summary>
 /// <param name="module">The instance of MvcModuleBase.</param>
 public MvcModuleEmbeddedFS(MvcModuleBase module)
 {
     _module = module;
 }