Expand description
HTMX-SSR
Server-side rendering framework for Rust, using HTMX.
§Features
auto-reload: Automatically reload the server when the source code changes. Useful for development. Not enabled by default.interfaces: Enrich the local base URL guessing logic with the ability to inspect the workstation’s network interfaces. Useful for development. Not enabled by default.
Re-exports§
Modules§
- htmx
- HTMX-related types.
Structs§
- Cache
- A caching strategy.
- Caching
Controller - A controller that adds caching strategy support to another controller.
- Controller
Router - A router that is associated to a controller.
- Server
- The main struct for the HTMX-SSR framework.
- Server
Builder - A server builder.
- Server
Info - The server information.
- Server
Options - The options for the server.
Enums§
- Cache
Control - An opaque cache key.
- Parse
Error - Error that can occur when parsing a route from a string.
- Serve
Error - An error that can occur when trying to serve the application.
- Server
Options From EnvError - An error that can occur when trying to get the server options from the environment.
Traits§
- Caching
Controller Ext - An extension trait for controllers that adds caching strategy support.
- Caching
Response Ext - An extension trait for caching directives.
- Controller
- The controller trait is responsible for rendering views in an application, based on a given route and any associated model.
- HasSubcontroller
- A trait for controllers that have subcontrollers.
- Route
- The route trait can be implemented for types that represent a possible set of routes in an application.
- Route
Ext - An extension trait for routes.
- Subcontroller
Ext - An extension trait for controllers that provides subcontroller access.
Functions§
- decode_
path_ argument - Decode a path argument into a value.
- replace_
request_ path - Replace the path in a request.