Skip to content

v1.0.2

Latest
Compare
Choose a tag to compare
@RobertoPrevato RobertoPrevato released this 29 Mar 06:50
· 2 commits to main since this release
  • Add a Dockerfile to the template. New projects include a Dockerfile.
  • Add an helper function, absurl, for Jinja2 to generate absolute URLs to the
    application itself, handling the application Router.prefix.
  • Use absolute URLs in links in jinja templates to render proper links in
    sub-pages, like /home/example/.
  • Upgrade to BlackSheep 2.1.0.
  • Modify the project template to support the new Router prefix feature, and
    the APP_ROUTE_PREFIX env variable to control the route prefix globally.
  • Use the get_diagnostic_app from BlackSheep, as it is now included in the
    library.
  • Use the get_trailing_slash_middleware function, to ensure all HTML
    documents are served at a path ending with a trailing '/'. This is necessary
    to ensure relative links in HTML documents work consistently.
  • Add possibility to change the background color of the top section using an
    env variable BG_COLOR. This is to better support testing multiple
    installation using path based routing.