Releases: Neoteroi/BlackSheep-MVC
Releases · Neoteroi/BlackSheep-MVC
v1.0.2
- Add a
Dockerfileto the template. New projects include aDockerfile. - Add an helper function,
absurl, for Jinja2 to generate absolute URLs to the
application itself, handling the applicationRouter.prefix. - Use absolute URLs in links in jinja templates to render proper links in
sub-pages, like/home/example/. - Upgrade to
BlackSheep2.1.0. - Modify the project template to support the new
Routerprefix feature, and
theAPP_ROUTE_PREFIXenv variable to control the route prefix globally. - Use the
get_diagnostic_appfromBlackSheep, as it is now included in the
library. - Use the
get_trailing_slash_middlewarefunction, 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 variableBG_COLOR. This is to better support testing multiple
installation using path based routing.
v1.0.1
- Add a fallback in case of Application startup error.
- Unpin
pydanticversion. - Set the
APP_SHOW_ERROR_DETAILSenv variable indev.py.
v1
This release marks the first version of the API project template for BlackSheep. This template can still be used with version 1 of the web framework, but it is no more recommended for future projects. The main branch will contain a Cookiecutter template, to be used with the blacksheep-cli (not yet published at the time of this writing).
Version 2 of blacksheep will soon be marked as stable, and it is recommended for new projects.