Table of Contents

Class NiteHead

Namespace
Nite.Assets
Assembly
Nite.dll

Tags for the document head. The import map (dev only) must come before any module script.

public sealed record NiteHead : IEquatable<NiteHead>
Inheritance
NiteHead
Implements
Inherited Members

Constructors

NiteHead(IReadOnlyDictionary<string, string>?, IReadOnlyList<string>, IReadOnlyList<string>)

Tags for the document head. The import map (dev only) must come before any module script.

public NiteHead(IReadOnlyDictionary<string, string>? ImportMap, IReadOnlyList<string> Preloads, IReadOnlyList<string> Scripts)

Parameters

ImportMap IReadOnlyDictionary<string, string>
Preloads IReadOnlyList<string>
Scripts IReadOnlyList<string>

Properties

ImportMap

public IReadOnlyDictionary<string, string>? ImportMap { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Preloads

public IReadOnlyList<string> Preloads { get; init; }

Property Value

IReadOnlyList<string>

Scripts

public IReadOnlyList<string> Scripts { get; init; }

Property Value

IReadOnlyList<string>

Methods

ToHtml(string?)

public string ToHtml(string? nonce = null)

Parameters

nonce string

The request's CSP nonce, put on every script element.

Returns

string