Skip to content

Commit 4ea7b2c

Browse files
committed
Update recipes index and README
1 parent 0a81628 commit 4ea7b2c

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

docs/recipes/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,13 @@ Understanding the differences between single mode and multi mode in Lucee.
304304

305305
Lucee supports two types of Startup Listeners: Server.cfc and Web.cfc.
306306

307-
## [Static scope in components](/docs/recipes/static-scope-in-components.md)
307+
## [Mocking Static Functions in Lucee](/docs/recipes/static-mocking.md)
308308

309-
Static scope in components is needed to create an instance of cfc and call its method.
309+
How to mock static functions in Lucee for better testability without unnecessary wrappers.
310+
311+
## [Static Scope in Components](/docs/recipes/static-scope-in-components.md)
312+
313+
Understanding the static scope in Lucee components and how it can be used for shared data and functions.
310314

311315
## [Sub Components](/docs/recipes/sub-components.md)
312316

docs/recipes/index.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,11 +1070,22 @@
10701070
"hooks"
10711071
]
10721072
},
1073+
{
1074+
"file": "static-mocking.md",
1075+
"title": "Mocking Static Functions in Lucee",
1076+
"path": "/docs/recipes/static-mocking.md",
1077+
"hash": "a8039196ea8c67a5c6369c36eb6edaab",
1078+
"keywords": [
1079+
"Static Functions",
1080+
"Mocking",
1081+
"Unit Testing"
1082+
]
1083+
},
10731084
{
10741085
"file": "static-scope-in-components.md",
1075-
"title": "Static scope in components",
1086+
"title": "Static Scope in Components",
10761087
"path": "/docs/recipes/static-scope-in-components.md",
1077-
"hash": "4ef213604dc8a1abf5335bc1a1073a74",
1088+
"hash": "02df94c5d6fcc91910129843d88c84e1",
10781089
"keywords": [
10791090
"Static scope",
10801091
"Components",

0 commit comments

Comments
 (0)