-
-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Easier way of creating custom row templates #521
Comments
I think the trick is to redefine what a "cell_row" is. Each row is currently a list of cells: datasette/datasette/views/table.py Lines 159 to 163 in 6341f8c
I can redefine the row (the |
Of course I can't do it in this part of he code because it's constructing plain JSON objects here. I'll need to do it in the section that prepares special objects for the HTML. |
Actually I'm OK here - |
This is starting to shape up. Example template:
|
Still needed before merge: documentation! I can expand this section: https://datasette.readthedocs.io/en/stable/custom_templates.html#custom-templates |
Fixed by #533 |
I was messing around with a custom
_rows_and_columns.html
template and ended up with this:This is nasty. I'd like to be able to do something like this instead:
The text was updated successfully, but these errors were encountered: