AlexCouch / pluvo

Pluvo is a modern web framework purely in Gleam built ontop of mist
4 stars 0 forks source link

Set static/asset path #6

Closed AlexCouch closed 10 months ago

AlexCouch commented 10 months ago

Description

It's important to set the path that static assets will be accessed from in html/js. So being able to set that in the setup code should be a priority. More complex static configuration can be done with middleware.

Example

let pluv = pluvo.new()
|> pluvo.static("/assets")
AlexCouch commented 10 months ago

For now, static assets can be added via the static middleware.