From 778edd35efca6ee1d9a529cab4d6853438c7f39c Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Tue, 12 Nov 2024 21:21:07 +0100 Subject: [PATCH] improve getPageContext() example --- .../01.functions/getpagecontext/_examples.md | 11 ++++++++++- docs/03.reference/01.functions/valueref/function.md | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/03.reference/01.functions/getpagecontext/_examples.md b/docs/03.reference/01.functions/getpagecontext/_examples.md index 48e11d8d1..84d4e1f99 100644 --- a/docs/03.reference/01.functions/getpagecontext/_examples.md +++ b/docs/03.reference/01.functions/getpagecontext/_examples.md @@ -1,3 +1,12 @@ ```luceescript+trycf -writeDump(getPageContext()); +echo("Click to expand"); + pc = getPageContext(); + dump(var=pc, label="PageContext", expand=false); + dump(var=pc.getCFMLFactory(), label="CFMLFactory", expand=false); + dump(var=pc.getCFMLFactory().getEngine(), label="Engine",expand=false); + if( listFirst(server.lucee.version,".") lte 5) + dump(var=pc.getCFMLFactory().getConfig(), label="Config",expand=false); + else + dump(var=pc.getCFMLFactory().getConfigServer(), label="ConfigServer",expand=false); + dump(var=pc.getCFMLFactory().getScopeContext(), label="ScopeContext",expand=false); ``` \ No newline at end of file diff --git a/docs/03.reference/01.functions/valueref/function.md b/docs/03.reference/01.functions/valueref/function.md index 1de4398dd..93f94477d 100644 --- a/docs/03.reference/01.functions/valueref/function.md +++ b/docs/03.reference/01.functions/valueref/function.md @@ -1,6 +1,8 @@ --- title: ValueRef id: function-valueref +related: +- tag-function --- creates a reference to a UDF that acts like a simple value.