JqResourceResolver(Assembly, String?) Constructor

Definition

Namespace JQLite
Assembly JQLite.dll

A JqResolver over the embedded resources of an assembly. A resource name is the Prefix and the path with / and </code> turned into dots, plus .jq (code) or .json (data) if the path lacks the suffix for that kind. The suffix check is ordinal and case-insensitive. Resource lookup uses the resulting name as written. A directive in a module is relative to that module's name without its last segment. Safe to use from several threads.

public JqResourceResolver(Assembly assembly, string? prefix = null)

Parameters

assembly
Assembly

The assembly whose embedded resources hold the modules.

prefix
String

The dot-separated prefix of the resource names (often the assembly's default namespace), without a final dot; may be empty.

Remarks

With the prefix MyApp.Filters, include "utils" is MyApp.Filters.utils.jq, and include "sub/helper" in it is MyApp.Filters.sub.helper.jq.