Interface INiteAssets
What the tag helpers and the SPA endpoint need to know to write script tags: the dev server answers in development, the build manifest answers in production.
public interface INiteAssets
Properties
IsDevelopment
bool IsDevelopment { get; }
Property Value
Methods
GetHeadAsync(HttpContext)
ValueTask<NiteHead> GetHeadAsync(HttpContext context)
Parameters
contextHttpContext
Returns
GetHtmlAsync(string, HttpContext)
Renders an HTML entry (such as index.html) with its scripts and styles wired up.
ValueTask<string> GetHtmlAsync(string page, HttpContext context)
Parameters
pagestringcontextHttpContext
Returns
GetIslandAsync(string, HttpContext)
Resolves an island by name (its path under the islands folder, without extension).
ValueTask<NiteAsset> GetIslandAsync(string name, HttpContext context)
Parameters
namestringcontextHttpContext
Returns
GetModuleAsync(string, HttpContext)
Resolves an entry module by its path relative to the client root.
ValueTask<NiteAsset> GetModuleAsync(string source, HttpContext context)
Parameters
sourcestringcontextHttpContext