Skip to content

Datasette.render_template() method#664

Merged
simonw merged 8 commits intomasterfrom
render-template
Feb 4, 2020
Merged

Datasette.render_template() method#664
simonw merged 8 commits intomasterfrom
render-template

Conversation

@simonw
Copy link
Owner

@simonw simonw commented Feb 4, 2020

Refs #577

@simonw
Copy link
Owner Author

simonw commented Feb 4, 2020

Needs documentation.

@simonw simonw changed the title Datasatte.render_template() method Datasette.render_template() method Feb 4, 2020
@simonw
Copy link
Owner Author

simonw commented Feb 4, 2020

More importantly, I need to prototype up a plugin that actually uses this method - probably datasette-upload-csvs - to make sure it serves its purpose.

@simonw
Copy link
Owner Author

simonw commented Feb 4, 2020

It doesn't make sense for extra body scripts to be available for all template renders (including from plugins) but extra CSS and JS to only be handled by the BaseView render method - especially since extra body scripts are likely to depend on extra JS files.

@simonw
Copy link
Owner Author

simonw commented Feb 4, 2020

I'm going to ship this without documentation, get a couple of plugins out that use it and then add documentation once I'm confident it's right.

@simonw
Copy link
Owner Author

simonw commented Feb 4, 2020

See #576 for existing ticket covering Datasette class documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant