Bottle Static files

前端 未结 5 1929
小蘑菇
小蘑菇 2020-12-23 21:54

I have tried reading the docs for Bottle, however, I am still unsure about how static file serving works. I have an index.tpl file, and within it it has a css f

5条回答
  •  遥遥无期
    2020-12-23 22:15

    As indicated in the documentation, you should serve static files using the static function and css is a static file. The static function handles security and some other function which you can find out from the source. The path argument to the static function should point to the directory wherever you store the css files

提交回复
热议问题