Table of Contents

Class ProductionAssets

Namespace
Nite.Assets
Assembly
Nite.dll

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

environment IWebHostEnvironment

Properties

IsDevelopment

public bool IsDevelopment { get; }

Property Value

bool

Methods

GetHeadAsync(HttpContext)

public ValueTask<NiteHead> GetHeadAsync(HttpContext context)

Parameters

context HttpContext

Returns

ValueTask<NiteHead>

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

page string
context HttpContext

Returns

ValueTask<string>

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

name string
context HttpContext

Returns

ValueTask<NiteAsset>

GetModuleAsync(string, HttpContext)

Resolves an entry module by its path relative to the client root.

public ValueTask<NiteAsset> GetModuleAsync(string source, HttpContext context)

Parameters

source string
context HttpContext

Returns

ValueTask<NiteAsset>