Skip to main content

FileHandler

Include a single file using absolute or module relative path, e.g
<!--file:single.html--> or /file:single.txt/ <!--file:/path/to/single.html--> or /file:/path/to/single.txt/

Assembly: ServiceStack.dll
View Source
Declaration
public class FileHandler : IHtmlModulesHandler

Properties

Name

View Source
Declaration
public string Name { get; }

VirtualFilesResolver

View Source
Declaration
public Func<HtmlModuleContext, IVirtualPathProvider> VirtualFilesResolver { get; set; }

Methods

Execute(HtmlModuleContext, String)

View Source
Declaration
public ReadOnlyMemory<byte> Execute(HtmlModuleContext ctx, string path)
Returns

ReadOnlyMemory<System.Byte>

Parameters
TypeName
ServiceStack.HtmlModuleContextctx
System.Stringpath

Implements