Skip to content

Commit

Permalink
improve example
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Dec 16, 2024
1 parent a9cdea3 commit cfc98fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs_src/tips/sandwich_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
from esmerald import Esmerald


def setup():
# do preparations
...


def get_application():
setup()
registry = edgy.Registry(url=...)
Expand All @@ -13,3 +18,6 @@ def get_application():
# now apply the extensions
edgy.monkay.set_instance(edgy.Instance(registry=registry, app=app))
return app


application = get_application()

0 comments on commit cfc98fb

Please sign in to comment.