Skip to content

Commit

Permalink
Fix missing shell context helper
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Oct 13, 2024
1 parent 9e28e3f commit 93b6ef0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions emmett/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ def command(self):
def command_group(self):
return self.cli.group

def make_shell_context(self, context):
context["app"] = self
return context

def render_template(self, filename: str) -> str:
ctx = {"current": current, "url": url, "asis": asis, "load_component": load_component}
return self.templater.render(filename, ctx)
Expand Down

0 comments on commit 93b6ef0

Please sign in to comment.