public object GetValue(PageVariableFragment var) { return(Args.TryGetValue(var.NameString, out object value) ? value : Page.GetValue(var) ?? (LayoutPage != null && LayoutPage != Page.LayoutPage ? LayoutPage.GetValue(var) : null)); }
protected static ReadOnlyMemory <byte> DefaultOnUnhandledExpression(PageVariableFragment var) => TemplateConfig.HideUnknownExpressions ? null : var.OriginalTextUtf8;
public string GetEncodedValue(PageVariableFragment var) { return(Context.EncodeValue(GetValue(var))); }
public object GetValue(PageVariableFragment var) { return(PageVars.TryGetValue(var.NameString, out string value) ? value : LayoutPage?.GetValue(var)); }
protected static byte[] DefaultOnUnhandledExpression(PageVariableFragment var) => var.OriginalTextBytes;
protected static byte[] DefaultOnUnhandledExpression(PageVariableFragment var) => TemplateConfig.HideUnknownExpressions ? null : var.OriginalTextBytes;