{"ok": true, "database": "docs", "table": "sections", "rows": [{"id": "custom_templates:serving-files-from-a-directory", "page": "custom_templates", "ref": "serving-files-from-a-directory", "title": "Serving files from a directory", "content": "Datasette can serve static files from a directory for you, using the  --static \n                option. Consider the following directory structure: \n             metadata.json\nstatic-files/styles.css\nstatic-files/app.js \n             You can start Datasette using  --static assets:static-files/  to serve those\n                files from the  /assets/  mount point: \n             datasette --config datasette.yaml --static assets:static-files/ --memory \n             The following URLs will now serve the content from those CSS and JS files: \n             http://localhost:8001/assets/styles.css\nhttp://localhost:8001/assets/app.js \n             You can reference those files from  datasette.yaml  like this, see  custom CSS and JavaScript  for more details: \n             [[[cog\nfrom metadata_doc import config_example\nconfig_example(cog, \"\"\"\n    extra_css_urls:\n    - /assets/styles.css\n    extra_js_urls:\n    - /assets/app.js\n\"\"\") \n             ]]] \n             [[[end]]]", "breadcrumbs": "[\"Custom pages and templates\"]", "references": "[]"}], "primary_keys": ["id"], "primary_key_values": ["custom_templates:serving-files-from-a-directory"], "query_ms": 2.6518400118220598, "truncated": false}