FilesHandler
Include files matching a glob pattern using absolute or module relative paths, e.g
<!--files:components/.html--> or /files:components/.css/
<!--files:/dir/components/.html--> or /files:/dir/.css/
Assembly: ServiceStack.dll
View Source
Declaration
public class FilesHandler : IHtmlModulesHandler
Properties
Name
View Source
Declaration
public string Name { get; }
VirtualFilesResolver
View Source
Declaration
public Func<HtmlModuleContext, IVirtualPathProvider> VirtualFilesResolver { get; set; }
NormalizeVirtualPath
View Source
Declaration
public Func<string, string> NormalizeVirtualPath { get; set; }
NormalizedPaths
View Source
Declaration
public static Dictionary<string, string> NormalizedPaths { get; set; }
Methods
DefaultNormalizeVirtualPath(String)
View Source
Declaration
public static string DefaultNormalizeVirtualPath(string path)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | path |
Execute(HtmlModuleContext, String)
View Source
Declaration
public ReadOnlyMemory<byte> Execute(HtmlModuleContext ctx, string paths)
Returns
ReadOnlyMemory<System.Byte>
Parameters
Type | Name |
---|---|
ServiceStack.HtmlModuleContext | ctx |
System.String | paths |