- SSR Scopes: Each tokio task now has a local task queue to emulate the browsers microtask queue.
- htmx integration using Axum.
- SSR now escapes text.
- CSS Modules support. See
examples/css-modules
. - Components: A lightweight way to encapsulate HTML and CSS using shadow DOM. See
silkenweb::node::Component
. - Event handlers can be installed at the document level.
- Elements can be mounted as a child of
<head>
. - Templates, which allow you to pre render the DOM structure and instantiate it with more detail later. This can improve the performance of hot code paths.
css!
optionally supports nesting, validation, minification and vendor prefixes.declarative-shadow-dom
feature flag to support Declarative Shadow DOM with SSR.on_animation_frame
will run a closure on the next animation frame.UrlPath
can extract the URL's hash.impl From<String> for UrlPath
- A
handle
method onElement
#[derive(...)]
macros forValue
,HtmlElement
,AriaElement
,HtmlElementEvents
, andElementEvents
.weak-refs
cargo feature flag to enable event handling optimizations when weak refs are available.- A work-in-progress bootstrap component library.
- Merge
css!
andcss_classes!
macros intocss!
, which now supports inline CSS. - Merge element builder types and their targets. For example
DivBuilder
andDiv
are merged intoDiv
. Each element type has a marker type for mutablility which defaults to mutable. - Merge signal and value method variants, such as
class
andclass_signal
, into a single method that accepts either a value or a signal. The only exception to this ischildren_signal
, which still exists. - Split
class
intoclass
andclasses
.class
adds a single class andclasses
adds a collection of classes.class
andclasses
can be called multiple times to add more classes. - Hydrate and mount directly onto the mount point, rather than onto a child of the mount point.
- Explicit low level DOM abstraction with types for
Wet
(client only),Dry
(server only),Hydro
(client or server, with hydration), andTemplate
. - Rename
html_element
tocustom_html_element
- Fix animation timestamps. Previously they were relative to the previous animation frame, now they start at 0.
- Use
serde_wasm_bindgen
for Tauri serialization to fix warnings about serde_json.
- Tauri support
- Server side routing and pre-rendering
- Routing improvements:
UrlPath
struct with methods to destructure the URLrouter::anchor
androuter::link_clicked
convenience methods
- Compile time constants for CSS classes can be generated with
css_classes!
- Compilation of SCSS and checking of inline CSS with
css!
- Webcomponents:
- Support for shadow root (
attach_shadow_children
) - Support for HTML
slot
elements html_element!
syntax works better withrustfmt
- Support for shadow root (
- Element handles, so you can reference an element from elsewhere in the DOM tree. See the Element Handle example
- DOM:
- SVG support
- Aria support
- Use
futures-signals
for reactivity - Support for server side rendering with hydration