v0.19.0
Introducing Jaspr Content
jaspr_content is a new first-party Jaspr package for building content-driven sites like documentation, blogs, or marketing pages.
It provides out-of-the-box tools for loading, parsing, and rendering content from various sources like markdown files. It is fully customizable and you are able to add your own implementations for each part.
Checkout the docs for more: https://docs.jaspr.site/content
Changelog
-
BREAKING
JasprOptions.useIsolatesis nowfalseby default (wastrue).If you want to keep the old behaviour of rendering each request in a separate isolate, use
Jaspr.initializeApp(..., useIsolates: true). -
Added
allowedPathSuffixesoption toJaspr.initializeApp()to enable handling route paths with extensions other thanhtml. -
Added support for generating a sitemap.xml in static mode. To enable this, pass
--sitemap-domain=my.domain.comtojaspr build.Add sitemap params like
changefreqandpriorityto your routes by usingRoute(settings: RouteSettings(priority: 0.5))or set them throughServerApp.requestRouteGeneration().Exclude routes from the sitemap through the
--sitemap-excludeoption tojaspr build.Read more about Generating a Sitemap.
-
Added support
@clientcomponents from other packages.Components annotated with
@clientfrom other dependent packages are now also part of the js bundle when used during pre-rendering. -
BREAKING The
Flex(basis: ...)style now accepts aUnitvalue directly instead of aFlexBasis. -
Allow nesting
css.mediaandcss.supportsrules. -
Deprecated
Color.hex()andColor.named()in favor of the defaultColor()constructor. -
Added
onReassemblestream toServerApp. -
Various bug fixes.