Class RouteTemplateOptions
Package-wide settings, registered with services.AddRouteTemplates(...) or
context.UseTemplates(...); defaults apply when neither was called.
public sealed class RouteTemplateOptions
Inheritance
Properties
BaseDirectory
Directory relative template paths are resolved against. Default: .
public string BaseDirectory { get; set; }
Liquid
Parse templates with Scriban's Liquid-compatible syntax instead of the native {{ }} syntax. Default: false.
public bool Liquid { get; set; }
LoopLimit
Upper bound on loop iterations per render, a guard against a runaway template. Default: 10 000.
public int LoopLimit { get; set; }
StrictVariables
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; }