mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Started pattern portfolio at /-/patterns, refs #151
This commit is contained in:
parent
b3aa5f4313
commit
cef23e8861
5 changed files with 333 additions and 2 deletions
|
|
@ -72,7 +72,8 @@ class BaseView(AsgiView):
|
|||
def database_color(self, database):
|
||||
return "ff0000"
|
||||
|
||||
async def render(self, templates, request, context):
|
||||
async def render(self, templates, request, context=None):
|
||||
context = context or {}
|
||||
template = self.ds.jinja_env.select_template(templates)
|
||||
template_context = {
|
||||
**context,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue