Table of Contents

Interface INiteAssets

Namespace
Nite.Assets
Assembly
Nite.dll

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

bool

Methods

GetHeadAsync(HttpContext)

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.

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).

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.

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

Parameters

source string
context HttpContext

Returns

ValueTask<NiteAsset>