Plugin static assets support both hyphens and underscores in names

Closes #611
This commit is contained in:
Simon Willison 2019-11-01 15:15:10 -07:00
commit ed57e4f990
2 changed files with 12 additions and 3 deletions

View file

@ -442,7 +442,7 @@ you have one:
@hookimpl
def extra_js_urls():
return [
'/-/static-plugins/your_plugin/app.js'
'/-/static-plugins/your-plugin/app.js'
]
.. _plugin_hook_publish_subcommand: