Skip to content

Commit b78eef5

Browse files
committed
use @add_example(ex_dir="../api-examples/Module")
1 parent c901f4f commit b78eef5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shiny/module.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
_: Id # type: ignore
2525

2626

27+
@add_example(ex_dir="../api-examples/Module")
2728
def ui(fn: Callable[P, R]) -> Callable[Concatenate[str, P], R]:
2829
"""Decorator for defining a Shiny module UI function.
2930
@@ -104,6 +105,7 @@ def wrapper(id: Id, *args: P.args, **kwargs: P.kwargs) -> R:
104105
return wrapper
105106

106107

108+
@add_example(ex_dir="../api-examples/Module")
107109
def server(
108110
fn: Callable[Concatenate[Inputs, Outputs, Session, P], R],
109111
) -> Callable[Concatenate[str, P], R]:

0 commit comments

Comments
 (0)