Path: redb-route/redb.Route.Templates/RouteTemplateOptions.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Templates/RouteTemplateOptions.cs
----
namespace redb.Route.Templates;
///
/// Package-wide settings, registered with services.AddRouteTemplates(...) or
/// context.UseTemplates(...); defaults apply when neither was called.
///
public sealed class RouteTemplateOptions
{
/// Directory relative template paths are resolved against. Default: .
public string BaseDirectory { get; set; } = AppContext.BaseDirectory;
/// Parse templates with Scriban's Liquid-compatible syntax instead of the native {{ }} syntax. Default: false.
public bool Liquid { get; set; }
/// Fail a render when the template reads a variable that does not exist (Scriban StrictVariables). Default: false — a missing value renders empty.
public bool StrictVariables { get; set; }
/// Upper bound on loop iterations per render, a guard against a runaway template. Default: 10 000.
public int LoopLimit { get; set; } = 10_000;
}