Class ProductionAssets
Answers tag helpers from the manifest written by nite build.
public sealed class ProductionAssets : INiteAssets
- Inheritance
-
ProductionAssets
- Implements
- Inherited Members
Constructors
ProductionAssets(IWebHostEnvironment)
Answers tag helpers from the manifest written by nite build.
public ProductionAssets(IWebHostEnvironment environment)
Parameters
environmentIWebHostEnvironment
Properties
IsDevelopment
public bool IsDevelopment { get; }
Property Value
Methods
GetHeadAsync(HttpContext)
public 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.
public 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).
public 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.
public ValueTask<NiteAsset> GetModuleAsync(string source, HttpContext context)
Parameters
sourcestringcontextHttpContext