예제 #1
0
 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));
 }
예제 #2
0
 protected static ReadOnlyMemory <byte> DefaultOnUnhandledExpression(PageVariableFragment var) =>
 TemplateConfig.HideUnknownExpressions ? null : var.OriginalTextUtf8;
예제 #3
0
 public string GetEncodedValue(PageVariableFragment var)
 {
     return(Context.EncodeValue(GetValue(var)));
 }
예제 #4
0
 public object GetValue(PageVariableFragment var)
 {
     return(PageVars.TryGetValue(var.NameString, out string value)
         ? value
         : LayoutPage?.GetValue(var));
 }
예제 #5
0
 protected static byte[] DefaultOnUnhandledExpression(PageVariableFragment var) => var.OriginalTextBytes;
예제 #6
0
 protected static byte[] DefaultOnUnhandledExpression(PageVariableFragment var) =>
 TemplateConfig.HideUnknownExpressions ? null : var.OriginalTextBytes;