{"ok": true, "database": "docs", "table": "sections", "rows": [{"id": "internals:datasette-static", "page": "internals", "ref": "datasette-static", "title": ".static(path, plugin=None, mount=None)", "content": "path  - string \n                         \n                             The path to the static asset, relative to the selected static directory. \n                         \n                     \n                     \n                         plugin  - string, optional \n                         \n                             The plugin name, for linking to an asset in that plugin's  static/ \n                                directory. \n                         \n                     \n                     \n                         mount  - string, optional \n                         \n                             The  --static  mount name, for linking to an asset in a directory mounted\n                                using  datasette --static mount_name:directory . \n                         \n                     \n                 \n                 Returns a URL for a static asset with a  ?_hash=  parameter based on the file\n                    contents. That URL takes the  base_url  setting into account. \n                 When the  ?_hash=  parameter matches the current file contents, Datasette will\n                    serve the asset with  Cache-Control: max-age=31536000, immutable, public . \n                 Call this with just  path  for one of Datasette's bundled static assets: \n                 datasette.static(\"app.css\") \n                 Use  plugin=  for plugin static assets: \n                 datasette.static(\n    \"plugin.js\", plugin=\"datasette_plugin_name\"\n) \n                 Use  mount=  for static directories mounted using the  --static  option: \n                 datasette.static(\"styles.css\", mount=\"assets\") \n                 plugin  and  mount  are mutually exclusive. The same feature is available\n                    to Jinja templates as the  static()  template function, described in\n                     Linking to static assets .", "breadcrumbs": "[\"Internals for plugins\", \"Datasette class\"]", "references": "[]"}], "primary_keys": ["id"], "primary_key_values": ["internals:datasette-static"], "query_ms": 2.2048239916330203, "truncated": false}