Public Assets

Place your static files like images, CSS, and JavaScript into public/ for automatic exposure.

Public Assets

To serve static files like images, stylesheets, or scripts, use the public/ directory. Barry exposes all contents of this folder under the /static/ path.

/public
├── images/
│   └── logo.png           → /static/images/logo.png
├── styles.css             → /static/styles.css
└── favicon.ico            → /static/favicon.ico

This keeps static assets out of your route logic and gives you a clear convention for referencing them in templates. See Templating for examples of how to link assets in HTML.